Skip to content

Instantly share code, notes, and snippets.

@nitincoded
Created April 27, 2016 08:53
Show Gist options
  • Save nitincoded/40a76ff43f9122237d14003b9eb73fee to your computer and use it in GitHub Desktop.
Save nitincoded/40a76ff43f9122237d14003b9eb73fee to your computer and use it in GitHub Desktop.
Setting up SSHd without requiring a password
Run ssh-keygen. This creates the files ~/.ssh/id_rsa and ~/.ssh/id_rsa.pub
Copy this file across to the host on which you want to login.
Run ssh-copy-id -i <filename> user@hostname
The user and hostname are on the destination system - copy this off the bash prompt
Putty uses a different format so use PuttyKeygen to load the private key and convert it to ppk format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment