Dies ist eine alte Version des Dokuments!
SSH
kwallet als login keychain für SSH key passphrases
Korrigiert und angepasst auf das aktuelle openSUSE Tumbleweed nach dieser Anleitung für manjaro
Zentrale Umgebungsvariable für SSH_ASKPASS auf kdewallet umleiten
<font inherit/monospace;;inherit;;#18b2b2background-color:#ffffff;>!/bin/sh</font> <font inherit/inherit;;inherit;;#000000background-color:#ffffff;></font> <font inherit/inherit;;inherit;;#18b218background-color:#ffffff;>export</font> <font inherit/inherit;;inherit;;#000000background-color:#ffffff;>SSH_ASKPASS</font> <font inherit/inherit;;inherit;;#18b218background-color:#ffffff;>=</font> <font inherit/inherit;;inherit;;#000000background-color:#ffffff;>/usr/libexec/ssh/ksshaskpass</font>
SSH_AUTH_SOCK in der bashrc setzen
<font inherit/monospace;;inherit;;#18b218background-color:#ffffff;>export</font> <font inherit/inherit;;inherit;;#000000background-color:#ffffff;>SSH_AUTH_SOCK</font> <font inherit/inherit;;inherit;;#18b218background-color:#ffffff;>=</font> <font inherit/inherit;;inherit;;#ffff54background-color:#ffffff;>"$XDG_RUNTIME_DIR"</font> <font inherit/inherit;;inherit;;#000000background-color:#ffffff;>/ssh-agent.socket</font>
systemd Service im Userspace
<codeblock-buttons>
mkdir -p ~/.config/systemd/user
</codeblock-buttons>
<codeblock-buttons>
nano ~/.config/systemd/user/ssh-agent.service
</codeblock-buttons>
service File
<codeblock-buttons>
[Unit]
Description=SSH agent (ssh-agent)
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
Environment=DISPLAY=:0
ExecStart=ssh-agent -D -a $SSH_AUTH_SOCK
ExecStop=kill -15 $MAINPID
[Install]
WantedBy=default.target
</codeblock-buttons>
Reload und Start
<codeblock-buttons>
systemctl –user daemon-reload
</codeblock-buttons><codeblock-buttons>
systemctl –user enable ssh-agent.service
</codeblock-buttons>
Autostart Datei, um die Keys beim Login zu laden:
<codeblock-buttons>
nano ~/.config/autostart/ssh-add.desktop
</codeblock-buttons><codeblock-buttons>
[Desktop Entry]
Exec=ssh-add -q ~/.ssh/key1 ~/.ssh/key2 ~/.ssh/key3 </dev/null
Name=ssh-add
Type=Application
</codeblock-buttons>
Wenn nach dem Login nicht automatisch nach der Speicherung der Keys in kwallet gefragt wird, kann mans auch manuell machen
<codeblock-buttons>
ssh-add -q /path/to/key </dev/null
</codeblock-buttons>