diff options
author | Anthony Wang | 2023-08-05 19:30:40 -0500 |
---|---|---|
committer | Anthony Wang | 2023-08-05 19:30:40 -0500 |
commit | 393e142cce657aeee0e4d5e45a62f42f3cf0d024 (patch) | |
tree | 074bb10742cb4a68aeb07c492cc11a798e3c47f1 | |
parent | 111f17a1b3f4da3d7aa377e9cbd6b65289f7b771 (diff) |
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
-rw-r--r-- | autostart/ssh-add.desktop | 4 | ||||
-rw-r--r-- | environment.d/ssh_askpass.conf | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/autostart/ssh-add.desktop b/autostart/ssh-add.desktop new file mode 100644 index 0000000..01d2f1c --- /dev/null +++ b/autostart/ssh-add.desktop @@ -0,0 +1,4 @@ +[Desktop Entry] +Exec=ssh-add -q +Name=ssh-add +Type=Application diff --git a/environment.d/ssh_askpass.conf b/environment.d/ssh_askpass.conf index d27dc7a..a7104cc 100644 --- a/environment.d/ssh_askpass.conf +++ b/environment.d/ssh_askpass.conf @@ -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 |