New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

ssh with private key pair no longer working?

Got problems with your B2 or B3? Share and get helped!
Post Reply
iveand
Posts: 2
Joined: 25 Jul 2012, 12:57

ssh with private key pair no longer working?

Post 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
johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Re: ssh with private key pair no longer working?

Post by johannes »

the excito wiki has moved to wiki.mybubba.org
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)
Ubi
Posts: 1549
Joined: 17 Jul 2007, 09:01

Re: ssh with private key pair no longer working?

Post 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
Gordon
Posts: 1469
Joined: 10 Aug 2011, 03:18

Re: ssh with private key pair no longer working?

Post by Gordon »

I think in Squeeze the file name should actually be 'authorized_keys2'.
Post Reply