Hi Ben, Try renaming .ssh/authorized_keys to .ssh/authorized_keys2 and make sure that you chmod 600 .ssh/authorized_keys2 Regards, Andre -----Original Message----- From: redhat-list-bounces@xxxxxxxxxx [mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Ben Kevan Sent: 23 July 2008 05:54 AM To: General Red Hat Linux discussion list Subject: Re: SSH Keys for password less ssh sessions On Tuesday 22 July 2008 08:10:02 pm Sanjay Chakraborty wrote: > I do not know why you are writing a script for this. In redhat for ssh > key fingureprint do: > type ssh-keygen -t rsa or dsa > it will create two .files id_rsa and id_rsa.pub (if you type dsa it > will be id_dsa) in .ssh directory. copy id_rsa.pub key to other box in > .ssh directory and name that authorized_keys. > Remember .ssh should be 700 as permission. Now do ssh from that user > you should be able to login without local password. > If you read the script, it does what you just said. Why would I do it? It's quit a bit easier to run ssh-copy-id user@$i then it is to do the whole copy command, then append it to the current authorized_keys file. With that said, the method you talk about (using DSA does not work). On another server with identical /etc/ssh/sshd_config it works .. what's the deal? -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list DISCLAIMER: This email and any files transmitted with it are confidential to DataCash Group plc and its group companies. It is intended only for the person to whom it is addressed. If you have received this email in error, please forward it to info@xxxxxxxxxxxx with the subject line "Received in Error". If you are not the intended recipient you must not use, disclose, copy, print, distribute or rely on this email or any transmitted files. DataCash Ltd is registered in England and Wales no. 3430157. DataCash Ltd is part of the DataCash Group plc. DataCash Group plc is registered in England and Wales no. 3168091. DataCash Ltd and DataCash Group plc registered address is Descartes House, 8 Gate Street, London, WC2A 3HP, United Kingdom. Save a tree...Please only print this page if essential -- redhat-list mailing list unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe https://www.redhat.com/mailman/listinfo/redhat-list