[Ilugc] SSH login without pwd from diff user

  • From: sarav_gsa@xxxxxxxxx (saravanan ganapathy)
  • Date: Thu, 13 May 2004 23:24:11 -0700 (PDT)

I 've tried this option also. But again it prompts for
pwd

--- "Raman.P" <raamanp@xxxxxxxxxxx> wrote:

 --- 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/



        
                
__________________________________
Do you Yahoo!?
SBC Yahoo! - Internet access at a great low price.
http://promo.yahoo.com/sbc/

Other related posts: