trudheim at gmail.com
Thu Jan 5 10:41:55 UTC 2006
On 1/5/06, David Mummery <dmummery at accessit.co.uk> wrote:
> 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(!)
root login may be disabled in the target systems /etc/ssh/sshd_config.
Check the setting PermitRootLogin if it allows it or not.
Anders Karlsson <trudheim at gmail.com>
More information about the ubuntu-users