2022/05/18/ssh-passphrases-kde/ #147
Replies: 2 comments 1 reply
-
Thanks for the article. I've noticed a few issues: For Running the automatic key import is not gonna work because there's no trailing #!/bin/bash
# Wait for kwallet
kwallet-query -l kdewallet > /dev/null
for KEY in $(ls $HOME/.ssh/id_rsa* | grep -v \.pub); do
ssh-add -q ${KEY} </dev/null
done
for KEY in $(ls $HOME/.ssh/id_ed25519* | grep -v \.pub); do
ssh-add -q ${KEY} </dev/null
done |
Beta Was this translation helpful? Give feedback.
-
Thanks for this write-up. I had to change the process search to be more specific, otherwise it matched previously killed instances that sometimes hang around as zombies, and a pgrep --euid "$USER" --runstates DRS --exact ssh-agent I also changed the key adding to something like this to avoid both quoting issues, and parsing for KEY in "$HOME"/.ssh/id_{rsa,ed25519}_*; do
if [[ "$KEY" != *.pub ]]; then
ssh-add -q "$KEY" < /dev/null
fi
done |
Beta Was this translation helpful? Give feedback.
-
2022/05/18/ssh-passphrases-kde/
I finally (shame on me) cycled all my SSH keys to use passphrases. One thing I massively dislike is having to enter my passphrase when using them. ssh-agent to the rescue!
https://kcore.org/2022/05/18/ssh-passphrases-kde/
Beta Was this translation helpful? Give feedback.
All reactions