SSH question
David Mummery
dmummery at accessit.co.uk
Thu Jan 5 10:16:01 UTC 2006
I'm trying to setup password-less SSH login using public/private keypair but am failing. All the documentation tells me to do the same thing but it does not work:
On my remote machine, as root, I run:
ssh-keygen -t rsa
- Enter and confirm passphrase
cp /root/.ssh/i_rsa.pub /root/.ssh/authorised_keys
chmod 644 /root/.ssh/authorised_keys
I then copy authorised_keys to the machine I want to connect from, as root, and put it into /root/.ssh/authorised_keys
I then chmod 644 this file.
Despite this, when I run 'ssh root at remote_host', as root, I am still asked for remote host's root password. I cannot see what I am doing wrong(!)
Thanks in advance.
David Mummery
Disclaimer: This message may only be read in context and with common sense. No children or animals were hurt during its creation, so if concerned or in doubt, please destroy it with a clear conscience.
If this message is not meant for you, as ordinary people we have made a mistake and would appreciate your help. We promise that we mean no offence and will endeavour to rectify our mistake. Our full contact details can be found on www.accessit.co.uk
More information about the ubuntu-users
mailing list