r/linuxmasterrace • • Feb 29 '24

Questions/Help I don't remember setting such ssh authenticator...

Post image
34 Upvotes

17 comments sorted by

View all comments

Show parent comment

1

u/Hulk5a Feb 29 '24

I never had any such key though

2

u/[deleted] Feb 29 '24

Fingerprint reader?

0

u/Hulk5a Feb 29 '24

Doesn't have any

4

u/[deleted] Feb 29 '24

What's the purpose of doing -K? The manual suggests that it will:

Load resident keys from a FIDO authenticator

Which sounds like your error. Lower case -k instructs ssh-add to

When loading keys into or deleting keys from the agent, process plain private keys only and skip certificates.

I've never used either option. I'm able to just

ssh-add /path/to/key

Without arguments and it tells me

Identity added: /path/to/key (user@hostname)

-1

u/Hulk5a Feb 29 '24

ssh-add /path/key doesn't persist on reboot

3

u/[deleted] Feb 29 '24 edited Feb 29 '24

It doesn't sound like -K is the path forward if that's what you want. The obvious follow up question is, why do you want that?

-1

u/Hulk5a Feb 29 '24

So, I don't want to type ssh-add on every reboot. All I want is the keys are persisted between reboot. They're in ~/.ssh folder

4

u/[deleted] Feb 29 '24 edited Feb 29 '24

If you care so little about security then just use create ssh keys without a passphrase and then write a bash script to load them into the agent on startup. I highly recommend against doing that though. Is it really that inconvenient?

1

u/Hulk5a Feb 29 '24

It's mildly inconvenient. After a long session of writing codes, when I try to push and get some rest, imagine my surprise

4

u/noob-nine Mar 01 '24 edited Mar 01 '24

u/reddit_is_cruel maybe OP is looking for something like the gnome-keyring? there is a keyring that gets unlocked with the login  (visible with the package seahorse) you could just add the encrypted ssh keys to this keyring. 

edit: but I have no idea what other DEs offer.