Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
cat ~/id_rsa.pub >> ~/.ssh/authorized_keys

Test Key Based Authetication

Warning

Roderick you can put the instructions here.

Disable Password Authentication

Modify the sshd_config file to disable password authentication,

Code Block
languagebash
# Since this is a critical file, back it up first.
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.2011-02-12.v0.0.tinpham_abuot_to_disable_password_auth.bck
# Load the file in your favourite editor.
sudo vi /etc/ssh/sshd_config

 

Adjust the following,

Code Block
languagebash
# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

...