Skip to content

Instantly share code, notes, and snippets.

@egoens
Last active March 18, 2024 19:13
Show Gist options
  • Select an option

  • Save egoens/c3aa494fc246bb4828e517407d56718d to your computer and use it in GitHub Desktop.

Select an option

Save egoens/c3aa494fc246bb4828e517407d56718d to your computer and use it in GitHub Desktop.
Use this if ssh key keeps asking for password

ghost commented Nov 20, 2018

Copy link
Copy Markdown

For some reason mine still does not work

@donnelg

donnelg commented Dec 2, 2018

Copy link
Copy Markdown

Thank you, thank you

@gauthamireddy

Copy link
Copy Markdown

Thank you!!!

@CodeLongAndProsper90

Copy link
Copy Markdown

This is great!!!

@vjeuel

vjeuel commented Apr 1, 2020

Copy link
Copy Markdown

Thanks so much!!!

@souvikhaldar

Copy link
Copy Markdown

Thanks.
But why does this happen?

@xyz8983

xyz8983 commented Jun 2, 2020

Copy link
Copy Markdown

it works! thank you!

@petar-m-petrov

Copy link
Copy Markdown

This does not work on windows.

@CodeLongAndProsper90

CodeLongAndProsper90 commented Nov 26, 2020

Copy link
Copy Markdown

This does not work on windows.

Yes, because it's made for UNIX-like systems

@medeirosle

Copy link
Copy Markdown

I just love you. thank you so much

@kster735

Copy link
Copy Markdown

This does not work on windows.

Yes, because it's made for UNIX-like systems

In Windows 10 I am using a bash shell terminal in VScode. I just typed : " ssh-add ~/.ssh/id_rsa "

Notice: in windows we don't use the -K parameter "ssh-add -K ~/.ssh/id_rsa" which causes the problem.

Allthough if you created your ssh-key with a passphrase, you will be asked for it.

@axh529

axh529 commented Nov 25, 2021

Copy link
Copy Markdown

Thank You!

@huseyinbiyik

Copy link
Copy Markdown

Thank you!

@Rothweiler

Copy link
Copy Markdown

I got an error "Could not open a connection to your authentication agent" I had to issue "eval 'ssh-agent -s'" first.

@vaniapsk

Copy link
Copy Markdown

Thank you!

@pm-ribeiro

Copy link
Copy Markdown

finally! thank u

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment