Skip to content

Instantly share code, notes, and snippets.

@frullah
Last active July 10, 2020 11:52
Show Gist options
  • Save frullah/017b26c3bbb146bee0f4b005ae6afea6 to your computer and use it in GitHub Desktop.
Save frullah/017b26c3bbb146bee0f4b005ae6afea6 to your computer and use it in GitHub Desktop.
make SSH login once

install keychain

sudo apt update
sudo apt install -y keychain

add below to shell rc file
you can change from id_rsa to another private key file name

  • bash
    echo "eval \"\$(keychain --agents ssh --eval id_rsa -q)\"" >> ~/.bashrc
  • zsh
    echo "eval \"\$(keychain --agents ssh --eval id_rsa -q)\"" >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment