Reputation: 83
that question has already ask a million times and non of the solutions seems to work for me. I run openSuse Linux and everytime I do a git pull (or push) I get
git-files> git pull
Enter passphrase for key '/home/xxxx/.ssh/id_rsa':
When running ssh-add or ssh-add -k the password is only stored until the next restart.
What can I do to make it work?
Upvotes: 0
Views: 132
Reputation: 1323953
Ubuntu Quick Tips suggests to use the keychain to persists your SSH keys passphrases.
# For openSUSE Tumbleweed run the following as root:
zypper addrepo https://download.opensuse.org/repositories/security/openSUSE_Tumbleweed/security.repo
zypper refresh
zypper install keychain
# add the following lines to your ${HOME}/.bashrc or /etc/bash.bashrc:
keychain id_rsa id_dsa
source ~/.keychain/$(uname -n)-sh
The alternative would be to switch to an HTTPS URL, which requires a username/password (or token), and use a git credential storage.
But this has nothing to do with SSH anymore.
Upvotes: 1