As requested by Didi, an example of how to configure X11 with SSH keys without gnome-keyring. I pulled parts of this from the default xdm Xsession of OpenBSD. Wack this is your .xsession or .xinitrc. You could do what I do and symlink them to the same file. I am lazy.
ssh_keys() {
id1=$HOME/.ssh/identity
id2=$HOME/.ssh/id_dsa
id3=$HOME/.ssh/id_rsa
if [ -x /usr/bin/ssh-agent ] && [ -f $id1 -o -f $id2 -o -f $id3 ];
then
eval `ssh-agent -s`
ssh-add < /dev/null
fi
}
do_exit() {
if [ "$SSH_AGENT_PID" ]; then
ssh-add -D < /dev/null
eval `ssh-agent -s -k`
fi
exit
}
ssh_keys
exec xrandr --output VGA --mode 1680x1024 &
exec xterm -e sh /home/edd/eck/trunk/bin/iftool ral0 &
exec feh --bg-scale ~/.bg &
#exec xclock -digital -geometry +0-0 &
exec sudo pkill xconsole &
exec tint &
exec rox -p default &
exec openbox
do_exit
0 comments:
Post a Comment