[Ilugc] SSH login without pwd from diff user

  • From: raamanp@xxxxxxxxxxx (Raman.P)
  • Date: Fri, 14 May 2004 07:58:48 +0100 (BST)

 --- saravanan ganapathy <sarav_gsa@xxxxxxxxx> wrote: > 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


look a permission for .ssh/authorized_keys. It should be 700.

Raman.P


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

Other related posts: