How to change SSH port and Secure SSH

Try not to use port 22 for SSH login.

change it from  nano /etc/ssh/sshd_config file to another number for example : 2020 and save it on nano save command is (Ctrl + O)

Open the port number in your firewall rules like (ConfigServer Security & Firewall plugin )

 and run below command to take effects :

service sshd restart
Was this answer helpful? 19 Users Found This Useful (104 Votes)