Allowing SSH from a specific IP

Problem:

Users cannot connect to site from and admin perspective through SSH

Solution:

Using VI

  1. Connect to the server via SSH
  2. vi /etc/hosts.allow
  3. Once you are inside the file, to start editing press ā€œiā€
  4. Add a record sshd:IP Address (eg: sshd:8.8.8.8)
  5. Press ESC to stop editing
  6. To save and exit type ā€œ:wqā€