Last active
August 29, 2015 14:04
-
-
Save jgosmann/6f8e357dee0ccf626335 to your computer and use it in GitHub Desktop.
Enable ssh-agent in KDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo -e '#!/bin/sh\n[ -n "$SSH_AGENT_PID" ] || eval "$(ssh-agent -s)"' > ~/.kde/env/ssh-agent-startup.sh | |
| echo -e '#!/bin/sh\n[ -z "$SSH_AGENT_PID" ] || eval "$(ssh-agent -k)"' > ~/.kde/shutdown/ssh-agent-shutdown.sh | |
| chmod 755 ~/.kde/env/ssh-agent-startup.sh ~/.kde/shutdown/ssh-agent-shutdown.sh |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Copied from https://wiki.archlinux.org/index.php/SSH_Keys#ssh-agent