How to secure your SSH.

 
1. Permanently stop and disable ssh services (ubuntu)

command: sudo systemctl stop ssh
                sudo systemctl disable ssh
                sudo systemctl status ssh

To check if ports 22 still open after disable ssh
command : sudo lsof -i:22

* Please run this command from server terminal in nutanix web

2. Reject all IP & accept ssh connection only by allow IP Address

3. Using knockd filter ssh connection by knock port

4. Using passwordless SSH login

Comments