The ssh config inside ~/.ssh/ has an option 'AddKeysToAgent'. Why you don't use this?
For example: Host * ControlMaster auto ControlPath /run/user/%i/%r@%h-%p IdentityFile ~/.ssh/id_rsa ControlPersist 3600 User root AddKeysToAgent yes See man ssh_config On 23.03.23 09:42, Yassine Chaouche wrote:
Hello all, I'd like something to run ssh-add right after I login to my desktop (KDE). ssh-add needs to prompt me for my passphrase, and doesn't need any privileges. What are my options? Best,