SSH keygen and login problem

upen upendra.gandhi at gmail.com
Wed Jan 12 16:10:53 UTC 2011


What does /var/log/secure say ?

 I have had this issue happening due to bad modes on Home directory in
RHEL6.  chmod g-w $HOME fixed it.

Other than that current permissions on .ssh are 755
600 on authorized_keys and id_rsa
644 on id_rsa.pub

Password-less authentication works using ssh-keypair

Thanks,
A

>>> -----Original Message-----
>>> From: redhat-list-bounces at redhat.com
>>> [mailto:redhat-list-bounces at redhat.com] On Behalf Of a bv
>>> Sent: 12 January 2011 11:27
>>> To: redhat-list at redhat.com
>>> Subject: SSH keygen and login problem
>>>
>>>  Hi,,
>>>
>>> For my file transfer script i want to use scp without password. Here
>>> is nearly what i have done:
>>> 1- I logined to my Checkpoint (which is Redhat based and the one who
>>> is source) with my personal user and gave expert command  to have
>>> root permissons.
>>> 2. Changed directory to /root/.ssh and gave ssh-keygen -t dsa and
>>> created the key pairs.
>>> 3 I copied yhe public key to my home folder at the remote server
>>> like
>>>
>>> scp ~/.ssh/id_dsa.pub
>>> myuser at remoteserver:/home/myuser.ssh/authorized_keys
>>>
>>> 4. Then i copied this authorized_keys to the /root/.ssh.
>>> 5 then tried to send a sample file from my Checkpoint box to remote
>>> server with scp but it requested me to enter a password.
>>>
>>> how can i fix this ? then ill adapt my scirpt to this regards.
>>>
>>> --



-- 
upen,
emerge -uD life (Upgrade Life with dependencies)




More information about the redhat-list mailing list