Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
-3
rated 0 times [  -3] [ 0]  / answers: 1 / hits: 15796  / 2 Years ago, wed, may 4, 2022, 6:49:19

I have generated an RSA public / private key pair using ssh-keygen. However, I am prompted to enter the password to unlock it the first time it is used each session. How can I automatically have it unlocked after login?



Even better: since this is running on an Ubuntu server, it would be great if it was never locked at all - that way the automated daemons that need it would not require manual intervention to use it.


More From » ssh

 Answers
4

I may be mistaken here, but it sounds like what you're trying to do is to not need to unlock your key every time it is used?



If that's the case, it seems like the easiest solution would be to just not create a passphrase while creating the key. i.e. run



ssh-keygen


and when it asks for a passphrase, just press enter twice. I apologize if this is too simplistic, but it's what I've always done when creating keys so I don't need to unlock them. Hope it helps!


[#42342] Friday, May 6, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
tusmuumu

Total Points: 195
Total Questions: 122
Total Answers: 104

Location: Oman
Member since Tue, Feb 7, 2023
1 Year ago
;