The server using CentOS 5.5
after changing default port in /etc/ssh/sshd_config
, Im restarting SSH using command
/etc/init.d/sshd restart
and then I'm exit
exit
So Im testing connect SSH ssh -l root 123.456.789.123
and quickly get a message which showing the modification I make giving an effect:
ssh: connect to host 123.456.789.123 port 22: Connection refused
Im trying to connect with port:
ssh -p 12345 -l root 123.456.789.123
It takes too long time, and then fail to connect with message:
ssh: connect to host 123.456.789.123 port 12345: Connection timed out
I think something wrong with my command to connect to the port. Using ssh -l root 123.456.789.123
quickly giving error ssh: connect to host 123.456.789.123 port 22: Connection refused
,
while using ssh -p 22 -l root 123.456.789.123
takes too long time and failed to connect with message ssh: connect to host 123.456.789.123 port 12345: Connection timed out
After reboot the server, this still happening