Why am I no longer being asked for my ssh passphrase?

Kernels & Hardware, configuring network, installing services

Why am I no longer being asked for my ssh passphrase?

Postby pastic » 2020-12-02 08:31

When I began to use an RSA keypair for logging into my NAS and my Github account two years ago, I set up a passphrase for my private key. Consequently I had to type it once at first use for every logged in session. It's been like this for two years. But since a week or so I am no longer being asked for my passphrase. I don't know if the passphrase has been disabled (how could that have happened?) or if it is being unlocked automatically when I login (how could that have become the case?).

Is the passphrase contained in a file I have accidentally deleted, or what may have happened?

Edit:
Code: Select all
peter@debian:~/.local/share/keyrings$ ls -la
total 20
drwx------  2 peter peter 4096 Dec  2 08:23 .
drwx------ 35 peter peter 4096 Dec  2 11:04 ..
-rw-------  1 peter peter 4104 Nov 28 10:06 login.keyring
-rw-------  1 peter peter  207 Aug  9  2019 user.keystore
peter@debian:~/.local/share/keyrings$


The date for user.keystore more or less matches when Debian 10 was installed last year. login.keyring seems new since a few days. Is this proof that somehow unlocking at login has happened?
Debian 10.6 Cinnamon
pastic
 
Posts: 3
Joined: 2019-08-13 08:38

Re: Why am I no longer being asked for my ssh passphrase?

Postby trinidad » 2020-12-02 12:12

or if it is being unlocked automatically when I login


Most likely the case. Depending on your desktop (there is a difference between XFCE and Gnome) reset your key ring to not autostart with your session.

TC
You can't believe your eyes if your imagination is out of focus.
trinidad
 
Posts: 144
Joined: 2016-08-04 14:58

Re: Why am I no longer being asked for my ssh passphrase?

Postby pastic » 2020-12-02 18:45

Yes, I guess I can reset the keyring, but it would be interesting to understand why this has happened?

I have not poked around user settings lately, there is nothing in my .history that looks like accidental key management. There is no-one else in the household that could have done it either.

What might have set my key to be unlocked @ login?

EDIT: I have concluded that I must have accidentally ticked the box in the "unlock keyring" dialog at some stage.
Debian 10.6 Cinnamon
pastic
 
Posts: 3
Joined: 2019-08-13 08:38

Re: Why am I no longer being asked for my ssh passphrase?

Postby sgosnell » 2020-12-08 19:10

SSH keys are stored in ~/.ssh by default. Did you intentionally put the keys in a different location?
Take my advice, I'm not using it.
sgosnell
 
Posts: 974
Joined: 2011-03-14 01:49


Return to System configuration

Who is online

Users browsing this forum: No registered users and 11 guests

fashionable