SSH question

Kristian Vilmann kvi at sslug.dk
Thu Jan 5 11:00:26 UTC 2006


David Mummery 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
                        ^^^^^^^^^^
/root/.ssh/authorized_keys

Next thing is that you really don't want to run as root. Run as a normal 
user, and use su. But don't forget to set the root-password for emergencies.

/kristian





More information about the ubuntu-users mailing list