Change SSH port

# configure ssh port to 2222
vi /etc/ssh/sshd_config
PasswordAuthentication no
Port 2222
 
# restart ssh demon
/etc/init.d/ssh restart