Why does key-based ssh fail even after setting up the authorized_keys file on the remote host?
Posted
by
Brad Grissom
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Brad Grissom
Published on 2013-10-17T19:14:46Z
Indexed on
2013/10/17
22:21 UTC
Read the original article
Hit count: 306
permissions
|ssh
These details don't matter but I am on a Ubuntu 12.04 machine and I want to ssh into my RaspberryPi without a password. I followed the standard procedure for setting up ssh without a password:
local $ ssh-keygen -t rsa
(hit enter for defaults to the questions)
local $ scp ~/.ssh/id_rsa.pub matt@raspihost:~/.ssh/authorized_keys
I logged onto the raspihost and checked all my permissions on ~/.ssh/
and on the authorized_keys
file itself. It was still not working!
© Ask Ubuntu or respective owner