summaryrefslogtreecommitdiff
path: root/network/x11-ssh-askpass/xprofile.sample
blob: dce0eae0caedad0279e5c87a2667894f32e89fff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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