Koozali.org: home of the SME Server

SSH and RSA key

Miguel

SSH and RSA key
« on: March 08, 2001, 01:16:23 AM »
When I connect remotely to e-smith server, the server refuses my key. What do I have to do so that the server accepts my key?
The thing writes like this:


Thanks.

Gordon Rowell

Re: SSH and RSA key
« Reply #1 on: March 08, 2001, 08:31:17 AM »
You need to copy the file identity.pub from your local machine
into /root/.ssh/authorized_keys on the server.

Ensure that the permissions of /root/.ssh are restricted to
root-only read/write/search

Gordon

Miguel

Re: SSH and RSA key
« Reply #2 on: March 08, 2001, 06:16:53 PM »
Right, an I have done it. Well, I have to create a file authorized_keys since there is none at home/.ssh nor /etc/ssh. I write my public key there according to this file format (bits, modulus, etc), but then Server complains there is a bad name or format in the file, that the file structure is not what expected. After that, it goes on to passwords.
Miguel