Skip to content

SSH Server Configuration

Vasco Craveiro Costa edited this page Jul 3, 2015 · 4 revisions

1 - On file /etc/ssh/sshd_config make the following changes (using an editor like nano or vim. Do not forget to edit as super user - using sudo):

  • Uncomment line regarding the use of public keys (AuthorizedKeysFile %h/.ssh/authorized_keys)
  • Uncomment line regarding GSSAPI Authentication (GSSAPIAuthentication no) and Kerberos Authentication (KerberosAuthentication no)
  • Add UseDNS no on the end of the file

2 - Create the authorized_keys file (using mkdir ~/.ssh/ && touch ~/.ssh/authorized_keys) and put your SSH public key in the file.

Reference