Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Changing SSH port 22 to 23
Name: xnetfly Date: June 25, 2002 at 05:49:26 Pacific
Comment:
You can change the port /etc/ssh/sshd_config (or some config file in /etc). In mine, it's on the 8th line. Then I restarted sshd. But when I run %nmap localhost Port State Service 22/tcp open ssh 23/tcp open telnet 79/tcp open finger 111/tcp open sunrpc 515/tcp open printer 6000/tcp open X11 It does not show 23 as the ssh port. Then I turn off telnet and still it does not show ssh coming in under 23 but still 22... Any help to how to switch this port over!!!?? THANKS
Name: Jake Date: June 25, 2002 at 11:16:16 Pacific
Reply:
Did you try killing Telnet, then restarting SSH?
The only other thing I can think of is that you found the wrong config file. Try which sshd, and if it finds /usr/local/bin/sshd, then the config file is in /usr/local/etc.
Summary: I got this working, now ssh works odd because it sees 192.168.1.101 port 22 and 192.168.1.101 port 23 as the same SSH server, so it keeps thinking a Man In The Middle attack is occuring. Anyway to fix...
Summary: I take it in putty that you are trying to connect to SSH port 22? I think by default it chooses telnet port 23. I'm also assuming that you are trying to connect from a windoze box....have you tried a ...
Summary: Yes. I checked netstat. It shows ssh listen. Also in ps -ef I can see /usr/sbin/sshd is running. Putty version release is 0.53b and I am changing the default option of telnet to ssh port 22 ! Are ther...