I use a Windows machine to ssh via putty.
For this purpose i created a rsa key with puttygen. Copied the key from the field after creating. To just copy it into my authorized_keys file.
Here should be no problem it is the normal way of doing it. I am not using like others the save public file and would have to remove the first two and the last line and put something like rsa-**** infront. It already stands there.
So the fileformat should be normal.
In etc/ssh/sshd_config i removed the # infront of
Code: Select all
AuthorizedKeysFile %h/.ssh/authorized_keysCode: Select all
sudo chmod 700 ~/.ssh
sudo nano ~/.ssh/authorized_keys
sudo chmod 600 ~/.ssh/authorized_keys
sudo service ssh restartServer refused key.
The output of /var/log/auth.log is
Code: Select all
May 30 18:39:48 raspberrypi sshd[2836]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=192.168.2.104 user=pi
May 30 18:39:53 raspberrypi sshd[2836]: Accepted password for pi from 192.168.2.104 port 59151 ssh2
May 30 18:39:53 raspberrypi sshd[2836]: pam_unix(sshd:session): session opened for user pi by (uid=0)
May 30 18:39:57 raspberrypi sudo: pam_unix(sudo:session): session closed for user root
Help appreciated.