Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
167
rated 0 times [  167] [ 0]  / answers: 1 / hits: 234924  / 2 Years ago, wed, october 12, 2022, 12:18:50

Before upgrade


When I was running git clone git@... (using ssh) once per computer restart a window dialog appeared containing a textbox for inserting my SSH passphrase and confirmed with OK. Then the passphrase was no longer required until the next start of my system.


After upgrading to 13.10


After upgrading to Ubuntu 13.10 that window doesn't appear anymore but a message in terminal appears:


Enter passphrase for key '/home/username/.ssh/id_rsa': 

...every time when cloning a git repository this appears.


How can I fix this? I want to enter my passphrase only once.


More From » ssh

 Answers
4

Update: seems to be a bug from 13.10:



https://bugs.launchpad.net/ubuntu/+source/libpam-ssh/+bug/1247169







Anyway running the following commands the problem was fixed for me:



How to fix



I fixed this by entering the following commands:



$ ssh-agent bash


This creates a new bash process that allows you to add private keys. When adding a new private key you will be prompted for the passphrase once and only once.



And then:



$ ssh-add /home/username/.ssh/id_rsa
Enter passphrase for /home/username/.ssh/id_rsa:
Identity added: /home/username/.ssh/id_rsa (/home/username/.ssh/id_rsa)


...where username is your username. You can do the same using $USER variable:



$ ssh-add /home/$USER/.ssh/id_rsa


Alternatively, just use ~ for your home directory.



$ ssh-add ~/.ssh/id_rsa


And the problem was fixed.


[#28886] Wednesday, October 12, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
allowiel

Total Points: 189
Total Questions: 103
Total Answers: 105

Location: Slovenia
Member since Thu, Mar 18, 2021
3 Years ago
;