Skip to content

Instantly share code, notes, and snippets.

@rmasoni
Last active June 1, 2018 06:16
Show Gist options
  • Save rmasoni/a71ec3049f1061cfe6d4275e537ff801 to your computer and use it in GitHub Desktop.
Save rmasoni/a71ec3049f1061cfe6d4275e537ff801 to your computer and use it in GitHub Desktop.
Make SSH remember your password even between restarts on macOS.
$ ssh-add -K ~/.ssh/id_rsa; ssh-add -A

Set ~/.ssh/config to:

Host *
  UseKeychain yes
  AddKeysToAgent yes
  IdentityFile ~/.ssh/id_rsa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment