[kanchilug] [Tip] Enable password-less ssh logins

  • From: "Tha.Suresh" <jemenisuresh@xxxxxxxxx>
  • To: ILUG-C <ilugc@xxxxxxxxxxxxx>, KanchiLug <kanchilug@xxxxxxxxxxxxx>, ilug-bengaluru@xxxxxxxxxxxxxxxx, Linux Delhi <iitdlug@xxxxxxxxxxxxxxxx>, puduvailug@xxxxxxxxxxxxx, Mlug <glug-meerut@xxxxxxxxxxxxxxxx>
  • Date: Sun, 15 May 2011 15:10:13 +0530

Copy ssh keys to user@host to enable password-less ssh logins.

 $ ssh-copy-id user@host

To generate the keys use the command ssh-keygen.


Ex:

[suresh@mercury ~]$ ssh-copy-id parthi@xxxxxxxxxxx

parthi@xxxxxxxxxxx's password:
Now try logging into the machine, with "ssh 'parthi@xxxxxxxxxxx'", and check
in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.

[suresh@mercury ~]$ ssh parthi@xxxxxxxxxxx
Last login: Wed May 11 18:51:37 2011 from 192.168.1.2

[parthi@localhost ~]$








-- 
Warm Regards,
Tha.Suresh


My experiences with Linux: http://thasulinux.wordpress.com

Other related posts:

  • » [kanchilug] [Tip] Enable password-less ssh logins - Tha.Suresh