slackbuilds_ponce/network/x11-ssh-askpass/xprofile.sample
2010-05-11 20:01:46 +02:00

14 lines
261 B
Bash

#!/bin/sh
usessh=${usessh:-yes}
if test "$usessh" = "yes" -a -d $HOME/.ssh ; then
SSH_ASKPASS="/usr/libexec/x11-ssh-askpass"
if [ -x $SSH_ASKPASS ] ; then
export SSH_ASKPASS
ssh-agent > $HOME/.ssh/agent
. $HOME/.ssh/agent
ssh-add
fi
fi