bugzilla-daemon at mindrot.org
2003-Feb-19 13:37 UTC
[Bug 500] New: show how to start-up ssh-agent by default...
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.
Apparently Analagous Threads
- [Bug 500] show how to start-up ssh-agent by default...
- ssh-agent and ssh-add with openssh-2.2.0p1 on Redhat 7
- BUG: ssh-agent unlinks sockets/files it doesn't own.
- 2.5.1p1 ssh-agent path problem in Solaris
- Re: v2v: error while killing ssh-agent after importing VM via xen+ssh