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!
The Latest
Featured Videos
Linux Journal Live - eBook Readers and DRM
November 14th, 2008 by Shawn Powers in
The November 13, 2008 edition of Linux Journal Live! Shawn Powers and special guest, Linux Journal Author Daniel Bartholomew, talk e-book readers and Daniel's Kindle, DRM, and other goodness.
Run Your Windows Partition Without Rebooting
November 13th, 2008 by Elliot Isaacson in
Dual booting is a necessary evil and very inconvenient. What if you could run your windows partition in a virtual machine, so you wouldn't have to worry about rebooting anymore? With VMWare Workstation, you can.
Recently Popular
From the Magazine
December 2008, #176
The Oxford English Dictionary says the word "gadget" is a placeholder name for a technical item whose precise name one can't remember. Like that book-reader thingy from Amazon...what's it called? Spindle, Gindle...Kindle, that's it. Check it out in this month's gadget issue.
Other gadgets covered include the Nokia tablets, the BlackBerry, the Neo FreeRunner, the Dash Express, the Roku Netflix Player, the Kangaroo TV, The TomTom GO 930 and the MooBella Ice Cream System. On the larger hardware front, read the reviews of the Acer Aspire One and the YDL PowerStation. On the software front, check out the articles and columns on memcached, Samba security, Mutt, desktop gadgets, bash and Puppet. To wrap it all up, read Doc's thoughts on Google and the browser platform.
Delicious
Digg
Reddit
Newsvine
Technorati







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 @
Post new comment