Date: Thu, 28 Oct 2010 14:25:02 -0700 From: pete wright <nomadlogic@gmail.com> To: Peter Harrison <peter.piggybox@virgin.net> Cc: questions@freebsd.org Subject: Re: ssh key authentication problem... Message-ID: <AANLkTimczjW8%2B71HMbjSJFtECzbbuy%2BRyPW%2BpFcjSm63@mail.gmail.com> In-Reply-To: <20101028193953.GA6922@laptop.piggybox> References: <20101028193953.GA6922@laptop.piggybox>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 28, 2010 at 12:39 PM, Peter Harrison <peter.piggybox@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 =A0and 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_k= eys? 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 --=20 pete wright www.nycbug.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTimczjW8%2B71HMbjSJFtECzbbuy%2BRyPW%2BpFcjSm63>