Koozali.org: home of the SME Server

Quick shutdown

Les Mikesell

Re: Quick shutdown
« Reply #15 on: March 07, 2002, 05:53:44 AM »
In the server-manager setup for remote access, be sure you have selected 'yes' for command line access and standard passwords.   If you log in as admin you will get the SME console menu.  If you log in as root you will get a # prompt and the usual god-like power over the machine.  Setting up passwordless access takes a little more work.  You have to create a public/private key pair, keeping the private key in the usual place for your ssh client and adding  a copy of the public key to the /root/.ssh/authorized_keys file.  I do most of my remote work from a Mandrake 8.1 box that has a nifty 'ssh-copy-id' script that uses a password-based session to automatically do the grunge work of copying the key to the right place for you.

Norrie

Re: Quick shutdown
« Reply #16 on: March 07, 2002, 12:37:07 PM »
You have to create a public/private key pair, keeping the private key in the usual place for your ssh client and adding a copy of the public key to the /root/.ssh/authorized_keys file.

This is the point I'm stuck at.  The authorized_keys file didn't exist so I created it with pico and pasted the key (by right clicking in putty) but I'm not sure if there should be any spaces or carriage returns.  When I try to log into the server automatically using the saved putty config I get

Using username "root".
Server refused our key
root@192.168.0.254's password:

What should the authorized_keys file look like?  Anyone got any other ideas?

Thanks

Norrie
8o)