Most of us have to log on to a server while working on a project in our day to day life.
It is annoying to open multiple terminals and enter password for each log in.
So, how about authenticating your local machine permanently to your server login and eliminate entering password for ssh, scp etc.
perform 2 easy steps on your local machine and your goal is achieved:
1. (i) change to directory ~/.ssh;
(ii) ssh-keygen -t rsa
2. ssh-copy-id -i id_rsa @
Now you can log on to the server just by typing "ssh @".(The system will not ask for authentication(i.e password) ).
note : I faced problem if I manually created the .ssh directory in my home directory. This directory is automatically created when one does an ssh or scp.
www.sangeek.com
__________________________
- SanGEEK
Subscribe now!
Breaking News
| Google Shoos the Trustbusters Away | 2 hours 30 min ago |
| Skype Dumps GPL Jump | 4 hours 30 min ago |
| More Than the CAPTCHA is Broken at Gmail | 6 hours 30 min ago |
| "We'll Stop Fighting" Means Something Strange for Microsoft | 1 day 3 hours ago |
Featured Video
Linux Journal Gadget Guy, Shawn Powers, takes us through installing Ubuntu on a machine running Windows with the Wubi installer.
Live From the Field
The latest posts from the Linux Journal team.







use the public key and not the private one
On March 26th, 2008 redsonic (not verified) says:
Thank you for this very useful tip but it seems that there was a typo mistake:
ssh-copy-id -i id_rsa.pub @ip
instead of
ssh-copy-id -i id_rsa @