How do I restrict SSH?

How do I restrict SSH?
Answer
How to restrict SSH access only to specific IPs
  1. Now we will allow a list of known IPs who should be able to login to SSH. For that we need to add an entry to /etc/hosts. …
  2. Open up /etc/hosts.allow file using your favorite text editor vi /etc/hosts.deny. and add the following lines to deny all SSH connections to your public SSH port sshd: ALL.
 

Tìm kiếm

Back
Top