Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Enter PIN for Authenticator" for command ssh-add -K

I am running into an issue in adding my .pem key to my ssh-agent. I have set up my Linux Ubuntu 20.04 system with Yubikey and it has worked great. Have not had any problems using my Yubikeys. Love the added security; however, when I run this specific command ssh-add -K I get this message Enter PIN for authenticator:. I typed in my pin number from my authenticator for GitHub and even pressed on my YubiKey but nothing processed through. Can anyone help me on this? I would greatly appreciate it.

like image 703
Roma Avatar asked Dec 23 '22 15:12

Roma


1 Answers

In the Apple version -K stores the password in your keychain, so you don't have to type it every time. In the non-Apple version -K "Loads resident keys from a FIDO authenticator".

So, Instead of writing

$ ssh-add -K ~/.ssh/private_key


write this :

$ ssh-add ~/.ssh/private_key 

Replace private_key as your key e.g. $ ssh-add ~/.ssh/id_rsa

like image 89
Sandeep Kumar Kasera Avatar answered Dec 28 '22 05:12

Sandeep Kumar Kasera