[Bug 500] New: show how to start-up ssh-agent by default...
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Thu Feb 20 00:37:09 EST 2003
http://bugzilla.mindrot.org/show_bug.cgi?id=500
Summary: show how to start-up ssh-agent by default...
Product: Portable OpenSSH
Version: 3.5p1
Platform: All
URL: http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-agent
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Documentation
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy: hauser at acm.org
An experienced user recommends to me:
<<I start ssh-agent in .xsession as follows:
# check if ssh-agent is running
SSH_AGENT_RUNNING=`ps x | grep 'ssh-agent' |grep -v grep`
if [ "$SSH_AGENT_RUNNING" = "" ]; then
# start it if not
eval `ssh-agent -s`
# also add default entity
( sleep 5; env DISPLAY=:0 SSH_ASKPASS=/usr/local/bin/gnome-ssh-askpass
ssh-add ~/.ssh/identity ~/.ssh/id_dsa )&
else
# check if environment variables set
if [ -z "$SSH_AGENT_PID" ] ; then
# if not we set it
# Note: if SSH_AGENT_PID is set we assume that it is set correctly and
# also SSH_AUTH_SOCK is set
export SSH_AGENT_PID=`echo $SSH_AGENT_RUNNING | cut -f 1 -d ' '`
# Unfortunatly PID in SSH_AUTH_SOCK is not the same as AGENT_PID.
# Heuristic: usually it's one less ...
typeset -i SSH_AUTH_PID=$SSH_AGENT_PID-1
export SSH_AUTH_SOCK=`ls /tmp/ssh-*/agent.$SSH_AUTH_PID`
fi
# assume it's has default identity ...
fi>>
A hint to something similar like this in the manual probably wouldn't reduce
ssh-agent adoption...
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the openssh-unix-dev
mailing list