![]() |
[Solved] OpenSSH and SSH Keys issue?
Hi all,
I'm having problems with SSH keys and my N900. I'm not a complete Linux newbie, I use Linux exclusively at home and SSH a lot between computers. For some reason, I cannot get keys to work with the N900 working as a server.
Comparing to my 'main' Linux server the biggest thing different is a lot of *key* files missing, except ssh_host_rsa_key and ssh_host_rsa_key.pub, but I'm using RSA keys anyway and the others aren't referred to by /etc/ssh/sshd_config. I'm sure it's something *really* simple, but I cannot, for the life of me, work out what's wrong. :confused: Help, advice and ideas gratefully received, no matter how simple. |
Re: OpenSSH and SSH Keys issue?
Did you run ssh-copy-id or did you ' physically' copy the key from laptop to N900???
Did you have a passwd setup for the user 'user' on the N900? Only root password is created during configuration of the packages on the N900. |
Re: OpenSSH and SSH Keys issue?
Hi, no password is setup except for root. I physically transferred the file but sticking the .pub key onto LAN only apache and then copied and pasted into the N900.
|
Re: OpenSSH and SSH Keys issue?
Try to check if outcome differs.
On the N900 Code:
rm .ssh/authorized_keys Code:
ssh-copy-id -i .ssh/id_rsa.pub user@192.168.0.21 |
Re: OpenSSH and SSH Keys issue?
Done the above! New error (which I find promising as it means that something's changed and I'm progressing! :) )
Code:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ |
Re: OpenSSH and SSH Keys issue?
Disregard that last post, numpty here failed to delete the *right* line, deleted it and it seems to be working!
Is it safe now to disable password logins for the SSH server or will that further break things? |
Re: OpenSSH and SSH Keys issue?
The following settings should be set to no:
ChallengeResponseAuthentication no PasswordAuthentication no UsePAM no Restart sshd and check if ssh logins without keys are really disabled, like: Rename your private key file: Code:
mv ~/.ssh/id_rsa ~/.ssh/id_rsa.backup |
Re: OpenSSH and SSH Keys issue?
Thank you very much. Your continued support is gratefully appreciated.
Is UsePAM supported? I get the following message Code:
/etc/ssh # /etc/init.d/ssh restart |
Re: OpenSSH and SSH Keys issue?
For what it's worth, just restarted it and can log in, even without being challenged for a password.
From my netbook: Code:
$ls .ssh |
Re: OpenSSH and SSH Keys issue?
Strange? Did stopping may be fail because of the unsupported option of openssh on the N900?
|
Re: OpenSSH and SSH Keys issue?
Actually it's because seahorse was storing the key in it's cache. Reboot and it rejects my login. \o/
Do you ever just have one of those days? I've been 100% over thinking this and trying to make it more complicated than it needs to be. Anyway, problem solved, it's now happily rejecting my attempted to log in! If I replace the key with the backup, it works. Thank you so much for being so patient with me. Very kind of you to persist with the help. My battery is nearly dead on my N900, but as far as I can think, everything's all sorted now. Thank you once again. :) |
Re: [Solved] OpenSSH and SSH Keys issue?
I was also struggling along for some time and I had to change another line in /etc/sshd_config:
"StrictModes yes" to "StrictModes no" Maybe this is because I used the private and public key from another host (?) |
All times are GMT. The time now is 12:09. |
vBulletin® Version 3.8.8