Thread (11 messages) flat view 11 messages, 6 authors, 2016-06-15

Re: why multiple password prompts?

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:44:26

Daniel Barkalow [off-list ref] writes:
On Sat, 29 Mar 2008, Paul wrote:
Paul who?
quoted
When I do a simple git-pull over SSH, why does it typically prompt
me for my SSH password two or three times? And no, I am not
inputting it wrong.
In some versions of git, it makes separate connections to find out
what the remote's state is and to fetch the actual data. A third
connection should only be needed if there are new tags to fetch, and
that would be after some of the messages.

One of the changes in the upcoming release is to reduce this to one,
except for an occasional second one.
The way to avoid multiple prompt for SSH password is to set up SSH key
infrastructure, so you can login using SSH keys which does not require
you to enter password, with the possible exception of adding key to
keyring if it is protected by password.

See ssh-add(1) and ssh-keygen(1) (and keychain(1) if you want to add
keyonce for all sessions).

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help