On Wed, 2003-04-02 at 09:12, Jianping Zhu wrote:
> 
> I have linux box 7.3 A B C, i have root access to AB and only regular usr
> access to C. I want to backup some directories in B C(my home dirctory)
> to A. I need to setup corntab to do backup, so i need to find a way to
> establish connections without password. 
> I use ssh-keygen -t generate keys on A
> then copy key to B(/root/.ssh) 
> and i can ssh form A to B without password. 
> ([root A.ssh]ssh A
> 
> but after i cp key to C(/home/myname/.ssh/) and use 
> [root A.ssh] ssh [EMAIL PROTECTED]
> I was still prompt to provide password
> 
> how can i fix this problem?
> Thanks 
> 

This usually relates to either the public key is not in the right fle on
the remote box or permissions too liberal on the files.  Make sure tat
the key is in /home/myname/.ssh/authorized_keys and that only the user
can read it.

here is what ls -al looks linke on oneof my servers

drwx------    2 bhughes  bhughes      4096 Nov  1 13:32 .
drwx------   23 bhughes  bhughes      4096 Apr  2 14:08 ..
-rw-------    1 bhughes  bhughes      1218 Mar  3 20:51 authorized_keys
-rw-------    1 bhughes  bhughes       672 Oct 24 11:31 id_dsa
-rw-r--r--    1 bhughes  bhughes       625 Oct 24 11:31 id_dsa.pub
-rw-r--r--    1 bhughes  bhughes      3700 Apr  2 12:02 known_hosts


running sshd in debug mode is the only way to see an error message about
this issue IIRC.




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to