ssh key authentication problem...

Jon Radel jon at radel.com
Thu Oct 28 21:29:32 UTC 2010


On 10/28/10 3:39 PM, Peter Harrison 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
>
Either I'm having reading comprehension problems, or you've got things 
backwards.  If you're trying to login into the server across the 
network, the id_rsa.pub file goes into .ssh/authorized_keys file on the 
server, and the id_rsa file lives on your laptop, all nicely secured 
with a passphrase in case somebody steals your laptop.

--Jon Radel
jon at radel.com




More information about the freebsd-questions mailing list