How to change Linux / Unix SSH Port
To make your Linux server safer (to protect against SSH brute-force attacks), you can do the following to change SSH port.
vi /etc/ssh/sshd_config
change port from 22 to 2222
#Port 22
Port 2222
Then restart sshd
/etc/init.d/sshd reload
Use SSH:
ssh -p 2222 myservername
Use SCP:
scp -P 2222 myfile.txt me@myservername:/~/.
Popularity: 1%


















































