When pushing to GitHub in IDEA, it needs input SSH password login

Viewed 16

I have gen a key with ssh-keygen and added it to GitHub, but when I push to GitHub in idea, it needs input the SSH password to login.

SSH password Login

I want ask what the code is and why it needs me to input the password or whether there are solutions to solve this problem.

This problem has bothered me for a long time and thanks for you answer!

1 Answers

Check first if your private key is encrypted: the password to enter would then be the passphrase you used when ssh-keygen the key.

If you are on Windows, as shown in issue IDEA-90356, make sure your User environment variables include a HOME set to %USERPROFILE%.

Check also that ssh -Tv git@github.com works (meaning it ends with a welcome message: "Hi username! You've successfully authenticated...")

Related