#!/bin/bash
#the above line is  symbollic, for emacs.

SETOPTIONS=""
if [ -x /usr/bin/ssh-askpass ] ; then
    SETOPTIONS="yes"
fi
eval `ssh-agent`
if [ -z "$SETOPTIONS" ]; then
	xterm -e ssh-add 
else
	ssh-add < /dev/null
fi

if [ -f ~/.ssh/id_dsa ]; then
# enter DSA key
	if [ -z "$SETOPTIONS" ]; then
    		xterm -e ssh-add ~/.ssh/id_dsa
	else
		ssh-add ~/.ssh/id_dsa < /dev/null
	fi
fi

export CVS_RSH="ssh"


