Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 927 Bytes

File metadata and controls

41 lines (27 loc) · 927 Bytes

ssh

Roger Peng's notes (now gone, but available on internet archive)

stackoverflow answer re avoiding passphrase: http://stackoverflow.com/a/25721662/897303

ssh-add ~/.ssh/id_rsa &> /dev/null

I really don't understand this; seems you need to run both ssh-agent and ssh-add in each shell


GitHub instructions re ssh-agent

I think this is just needed on a Mac

  • Start ssh-agent in the background (in ~/.bash_profile?)

    eval "$(ssh-agent -s)"
    
  • Modify (or create) ~/.ssh/config

    Host *
      AddKeysToAgent yes
      UseKeychain yes
      IdentityFile ~/.ssh/id_rsa
    
  • Add your private key to the ssh-agent

    ssh-add -K ~/.ssh/id_rsa