Created
January 9, 2012 14:05
-
-
Save iiska/1583081 to your computer and use it in GitHub Desktop.
Using KWallet and ksshaskpass with ssh-agent
This file contains 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
#! /bin/bash | |
# Put this in ~/.kde/Autostart/ssh-agent.sh | |
export SSH_ASKPASS=/usr/bin/ksshaskpass | |
/usr/bin/ssh-add |
This file contains 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
#! /bin/bash | |
# Put this in ~/.kde/env/ssh-agent.sh | |
eval $(ssh-agent) |
This file contains 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
#! /bin/bash | |
# Put this in ~/.kde/shutdown/ssh-agent.sh | |
ssh-agent -k |
@lluis Even through /etc/X11/Xsession.options in Kubuntu do have use-ssh-agent
, it doesn't seem to auto-start on its own.
FYI - ssh-askpass will call ksshaskpass automatically ;)
Please update the paths for Plasma https://wiki.archlinux.org/index.php/KDE#Autostarting_applications
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ssh-agent is already running if you have use-ssh-agent at /etc/X11/Xsession.options so ~/.kde/Autostart/ssh-agent.sh may be enough