16 June 2011

Install SSH on a Linux Machine


  1. Install SSH: sudo apt-get install ssh
  2. Configure it:
    1. sudo vi /etc/ssh/sshd_config
    2. /Port 22[Enter] to search for “Port 22” and replace with a number greater than 1024
    3. Set these options:
      PermitRootLogin no
      X11Forwarding no
      UsePAM no
      UseDNS no
      AllowUsers [username]
    4. Restart the service: sudo service ssh reload
    5. Check you can login on the new port (run ifconfig to see IP).

No comments:

Post a Comment