Displaying 2 results from an estimated 2 matches for "ssh_agent_run".
2003 Feb 19
0
[Bug 500] New: show how to start-up ssh-agent by default...
...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...
2003 Feb 24
9
[Bug 500] show how to start-up ssh-agent by default...
http://bugzilla.mindrot.org/show_bug.cgi?id=500
------- Additional Comments From djm at mindrot.org 2003-02-24 12:43 -------
I think that:
[ -z "$SSH_AUTH_SOCK" ] && eval `ssh-agent -s`
[ -z "$SSH_AGENT_PID" ] || ssh-add -l >/dev/null 2>&1 || ssh-add
Is as effective and a lot more concise.
On the other hand, fragile heuristics like:
> export