i changed in /etc/ssh
then vi sshd_config
#Port22 remove # (Port 81)
/etc/init.d/sshd restart
after changed i go to my desktop putty change port to 81
do not connect, does any one know why?
sshd_config should contain a Port entry WITHOUT a #...
Port 1234
After saving the file restart sshd.
Check to see if your system is listening on the port with:
netstat -tuna
You should see an entry with the port you specified.
my server OS is fedora 4
i vi in sshd_config change #Port 22 ------> Port 20000 and restart sshd is find
after netstat -tuna ssh port still 22 do not change it also i test in putty do not connected either.