Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Using KWallet and ksshaskpass with ssh-agent
#! /bin/bash
# Put this in ~/.kde/Autostart/ssh-agent.sh
export SSH_ASKPASS=/usr/bin/ksshaskpass
/usr/bin/ssh-add
#! /bin/bash
# Put this in ~/.kde/env/ssh-agent.sh
eval $(ssh-agent)
#! /bin/bash
# Put this in ~/.kde/shutdown/ssh-agent.sh
ssh-agent -k
@lluis

This comment has been minimized.

Copy link

@lluis lluis commented Jul 6, 2013

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

@sudhirkhanger

This comment has been minimized.

Copy link

@sudhirkhanger sudhirkhanger commented Mar 2, 2015

@lluis Even through /etc/X11/Xsession.options in Kubuntu do have use-ssh-agent, it doesn't seem to auto-start on its own.

@BenjamenMeyer

This comment has been minimized.

Copy link

@BenjamenMeyer BenjamenMeyer commented Jun 15, 2016

FYI - ssh-askpass will call ksshaskpass automatically ;)

@ghost

This comment has been minimized.

Copy link

@ghost ghost commented Mar 20, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment