User Tools

Site Tools


software:cli:ssh:keys

SSH Keys management

Once created, you can let your window Manager/DE manage the passphrase

KDE

 pacman -S ksshaskpass
  • ~/.config/autostart-scripts/ssh-add.sh
#!/bin/sh
ssh-add -q ~/.ssh/key1 ~/.ssh/key2 ~/.ssh/key3 < /dev/null
 chmod +x ~/.config/autostart-scripts/ssh-add.sh 
  • .config/plasma-workspace/env/askpass.sh
#!/bin/sh
export SSH_ASKPASS='/usr/bin/ksshaskpass'
 chmod +x .config/plasma-workspace/env/askpass.sh 

Copy SSH key

 ssh-copy-id -i ~/.ssh/mykey user@host

References

software/cli/ssh/keys.txt · Last modified: 2022/09/24 08:21 by warnaud