The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 A Quick SSH tip...
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.

Cheers,

Mark

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 A Quick SSH tip...   new
Mark Sergeant 15-11-01 04:03 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org