Page 1 of 1

ssh with private key pair no longer working?

Posted: 16 Feb 2015, 09:31
by iveand
Greetings,

In the past I had used this link to set up "saved password" SSH access:

excito-wiki/Tutorials_and_How-tos/Connect_via_SSH_without_Password

(dead link, however :( seems the excito wiki is no more?). The gist of it was to do this:

ssh-keygen -t rsa (on client machine)

ssh user@b3.local "cat >> ~/.ssh/authorized_keys" < ~/.ssh/id_rsa.pub (again run from client machine)

This was so I could use unattended rsync scripts to backup to the B3. Over the past year I re-installed the B3 on a 4TB disk, and hadn't gotten around to setting up the ssh key pair stuff again.

Today I was trying again, and I successfully put my key to the ~/.ssh/authorized_keys file (and gave it 600 perms, and 700 perms on the folder), but I still get prompted when attempting to ssh into the B3.

This is the error I am getting in /var/log/messages:

Feb 16 07:14:11 b3 kernel: [ 46.699890] sshd (1672): /proc/1672/oom_adj is deprecated, please use /proc/1672/oom_score_adj instead.

I have tried googling that error, but not coming up with much. It seems I need an update to the ssh package? Any advice?

THANKS!

iveand

Re: ssh with private key pair no longer working?

Posted: 16 Feb 2015, 10:44
by johannes
the excito wiki has moved to wiki.mybubba.org

Re: ssh with private key pair no longer working?

Posted: 17 Feb 2015, 02:33
by Ubi
run the ssh server with 'verbose' mode set in /ets/ssh/sshd_conf and it will tell you why the key is rejected

Re: ssh with private key pair no longer working?

Posted: 17 Feb 2015, 05:51
by Gordon
I think in Squeeze the file name should actually be 'authorized_keys2'.