[Ilugc] SSH login without pwd from diff user

  • From: raamanp@xxxxxxxxxxx (Raman.P)
  • Date: Fri, 14 May 2004 06:43:04 +0100 (BST)

 --- saravanan ganapathy <sarav_gsa@xxxxxxxxx> wrote: > Hai,

 I have done the following

 i) Create keys by using ssh-keygen without supplying
a password (hit enter when asked for a password).This
will create id_dsa and id_dsa.pub in ~/.ssh directory
(Host A) 
ii) Copy the contents of id_dsa.pub into
   ~/.ssh/authorized_keys on Host B. 

After that I am able to ssh from hostA to host B by
using the same user without pwd. 

But I need to do ssh from hostA to host B by using
different user without pwd. 

I tried many times, but still it prompts for pwd. 

Can you please help me to solve my problem?

your pub key should be available in target userid's
.ssh/authorized_keys. ie on otheruser@hostB.

Also you shoud use ssh -l otherusername

Raman.P


________________________________________________________________________
Yahoo! India Matrimony: Find your partner online. 
http://yahoo.shaadi.com/india-matrimony/

Other related posts: