You are not logged in.

#1 2021-08-25 17:53:24

LiamMcCalloway
Member
Registered: 2013-03-19
Posts: 23

[Solved] Automatic unlocking of ssh keys upong logging

Hi all,

I'm trying to get my ssh keys unlock upon logging into gnome, so that some back-up scripts to remote locations can run automatically.

I follow the wiki for keyring , but I get the following when trying to add my ssh key password to the keyring.

$ /usr/lib/seahorse/ssh-askpass my_key 
seahorse-Message: 18:47:26.136: passphrase-prompt.vala:201: could not grab keyboard: 3

Any thoughts?

Many thanks all.

Last edited by LiamMcCalloway (2021-08-27 07:48:16)

Offline

#2 2021-08-27 07:47:52

LiamMcCalloway
Member
Registered: 2013-03-19
Posts: 23

Re: [Solved] Automatic unlocking of ssh keys upong logging

Solved by using a password-lesskey

Offline

#3 2025-01-01 22:52:09

FMB
Member
Registered: 2017-01-01
Posts: 23

Re: [Solved] Automatic unlocking of ssh keys upong logging

Old post, but other people might land here just like me, particularly if they do not use a full-blown login manager or desktop environment.

You can force Seahorse to remember the password with this kind of command:

secret-tool store --label="Unlock password for id_rsa" unique ssh-store:$HOME/.ssh/id_rsa

Use this one to check the password was saved:

secret-tool lookup unique ssh-store:$HOME/.ssh/id_rsa

See this Gnome issue as well as this.

Last edited by FMB (2025-01-01 22:55:55)

Offline

Board footer

Powered by FluxBB