Make ssh-add autostart at login

Alternatively, AddKeysToAgent yes in ~/.ssh/config will add the key when needed, but this breaks accessing SFTP files in Dolphin for some reason, so it's better to just run ssh-add at login
This commit is contained in:
Anthony Wang 2023-08-05 19:30:40 -05:00
parent 111f17a1b3
commit 393e142cce
Signed by: a
SSH key fingerprint: SHA256:B5ADfMCqd2M7d/jtXDoihAV/yfXOAbWWri9+GdCN4hQ
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,4 @@
[Desktop Entry]
Exec=ssh-add -q
Name=ssh-add
Type=Application

View file

@ -1,3 +1,3 @@
SSH_AUTH_SOCK=$XDG_RUNTIME_DIR/ssh-agent.socket
SSH_ASKPASS='/usr/bin/ksshaskpass'
SSH_ASKPASS=/usr/bin/ksshaskpass
SSH_ASKPASS_REQUIRE=prefer