Hi !
I am migrating from openSuSE 10.2 to F7.
I used to have a $HOME/.xinitrc with the following content, near to the end of file:
Code:
eval `ssh-agent -s`
ssh-add
So, during this X session I don't need to type my passphrase to open my $HOME/.ssh/id_dsa file, each time I want to ssh some server.
How to get the same funcionallity in F7 ?
Looks like the default /etc/X11/xinit/xinitrc file provided with F7 call ssh-agent in a different way, so I am not sure how to integrate ssh-add and gaskpass with the xinitrc file from F7.
from /etc/X11/xinit/xinitrc-common:
Code:
...
# Prefix launch of session with ssh-agent if available and not already running.
SSH_AGENT=
if [ -x /usr/bin/ssh-agent -a -z "$SSH_AGENT_PID" ]; then
if [ "x$TMPDIR" != "x" ]; then
SSH_AGENT="/usr/bin/ssh-agent /bin/env TMPDIR=$TMPDIR"
else
SSH_AGENT="/usr/bin/ssh-agent"
fi
fi
...
and, from /etc/X11/xinit/xinitrc:
Code:
...
elif [ -f /etc/X11/xinit/Xclients ]; then
exec $SSH_AGENT $DBUS_LAUNCH /etc/X11/xinit/Xclients || \
exec $SSH_AGENT /etc/X11/xinit/Xclients
else
...
I try to modify the line, from:
Code:
SSH_AGENT="/usr/bin/ssh-agent"
to
Code:
SSH_AGENT="eval `ssh-agent -s`; gaskpass | ssh-add"
but no success...
If anyone has the solution, or at least better ideas, please !