Author: Mark Sergeant
Date: 15-11-01 04:03
Whilst I think of it, for those of us that happen to use X in everyday environment here is an idea for everyone, if you are consistentley sshing to machines and get sick of putting in your password each time in your .xsession or .xinitrc put in the following...
eval `ssh-agent -s`
/usr/bin/ssh-add ~/.ssh/identity < /dev/null
/usr/bin/ssh-add ~/.ssh/id_dsa < /dev/null
(For both ssh 1 & 2)
When X starts up it will prompt you for passwords for both of these, put them in and ssh to a machine that already has your keys in the authorized_keys or authorized_keys2 and provided everything went well you will be logged in with no need for a password. It really is handy just ensure to lock your workstation when you walk away for obvious security reasons.