To check which porting is using for SSH sometime its not port 22

First we could not believe learn it and check it. Nowadays you have to lock the keys for your server in cloud not your server admin

netstat -tlpn| grep ssh

To change the default 22 port other port:
1. sudo vim  /etc/ssh/sshd_config
2. Change Port 22 to other port for ssh.
#Port 22
Port 1234
Categories: Uncategorized