ssh key authentication problem...
pete wright
nomadlogic at gmail.com
Thu Oct 28 21:51:56 UTC 2010
On Thu, Oct 28, 2010 at 12:39 PM, Peter Harrison
<peter.piggybox at virgin.net> wrote:
> Can anyone help me debug an ssh key-based authentication problem?
>
> I have an 8.1-R server running sshd, with one user account. On the server, I've used ssh-keygen to generate id_rsa and id_rsa.pub.
>
> On my laptop I then pulled the id_rsa.pub file over and:
>
> % cat id_rsa.pub >> .ssh/authorized_keys
>
i assume you copied it to ~/.ssh/authorized_keys or $HOME/.ssh/authorized_keys?
other things worth checking are permissions of ~/.ssh and the files
contained in there? man 1 ssh details permissions, but briefly:
~/.ssh/authorized_keys
Lists the public keys (RSA/DSA) that can be used for
logging in as this user. The format of this file is described in the
sshd(8) manual page. This file is not highly sensitive, but the
recommended permissions are read/write for the user, and not
accessible by others.
it also covers other files as well.
HTH
-pete
--
pete wright
www.nycbug.org
More information about the freebsd-questions
mailing list