Can’t use any SSH port other than 22 on Amazon EC2
By nano squared
I recently setup a Ubuntu server on Amazon EC2, and I’m accessing it from my windows computer through ssh via putty. After installing LAMP, I try to change the SSH port 22 to another number but after changing the port and allowing it on firewall I cannot connect to that specified port. It always says “connection timeout”.
Seems OK when checked using
netstat -tnlp | grep ssh.
I get this:
tcp 0 0 0.0.0.0:2222 0.0.0.0:* LISTEN 8963/sshd tcp6 0 0 :::2222 :::* LISTEN 8963/sshd
I don’t know what is wrong in my configuration. Can someone please help me?