File: start-ssh-agent.sh

package info (click to toggle)
lincvs 1.4.0-2
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 7,368 kB
  • ctags: 4,405
  • sloc: cpp: 36,167; ansic: 282; makefile: 86; sh: 51; xml: 19
file content (20 lines) | stat: -rwxr-xr-x 310 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh
#echo start ssh agent
if test ! -d ~/.ssh
then
    if test -w ~
    then
	mkdir ~/.ssh
    else
	exit 1
    fi
elif test ! -w ~/.ssh
then
    exit 1
fi
ssh-agent | head -2 > ~/.ssh/lincvs-environment
chmod 600 ~/.ssh/lincvs-environment
. ~/.ssh/lincvs-environment > /dev/null
echo | ssh-add
exit 0