You are not logged in.

#1 2011-08-09 17:02:48

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

[Solved] Locked out by OpenSSH, ssh -v not providing any clues

I just tried to SSH into my server but it shut me out (authentication is key-only, which has been working well since when I set it up first).

This is what it spits out:

$ ssh -v amalthea
OpenSSH_5.8p2, OpenSSL 1.0.0d 8 Feb 2011
debug1: Reading configuration data /home/stijn/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to amalthea [10.0.0.15] port 22.
debug1: Connection established.
debug1: identity file /home/stijn/.ssh/id_rsa-amalthea type 1
debug1: identity file /home/stijn/.ssh/id_rsa-amalthea-cert type -1
debug1: identity file /home/stijn/.ssh/id_rsa-arethusa type 1
debug1: identity file /home/stijn/.ssh/id_rsa-arethusa-cert type -1
debug1: identity file /home/stijn/.ssh/id_rsa-mnemosyne type 1
debug1: identity file /home/stijn/.ssh/id_rsa-mnemosyne-cert type -1
debug1: identity file /home/stijn/.ssh/id_rsa-athena type 1
debug1: identity file /home/stijn/.ssh/id_rsa-athena-cert type -1
debug1: identity file /home/stijn/.ssh/id_rsa-adamanthea type 1
debug1: identity file /home/stijn/.ssh/id_rsa-adamanthea-cert type -1
debug1: identity file /home/stijn/.ssh/id_rsa-bellerophon type 1
debug1: identity file /home/stijn/.ssh/id_rsa-bellerophon-cert type -1
debug1: identity file /home/stijn/.ssh/id_rsa-klio type 1
debug1: identity file /home/stijn/.ssh/id_rsa-klio-cert type -1
debug1: identity file /home/stijn/.ssh/id_rsa-kallisto type 1
debug1: identity file /home/stijn/.ssh/id_rsa-kallisto-cert type -1
debug1: identity file /home/stijn/.ssh/id_rsa-zeus type 1
debug1: identity file /home/stijn/.ssh/id_rsa-zeus-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.8
debug1: match: OpenSSH_5.8 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.8
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: sending SSH2_MSG_KEX_ECDH_INIT
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: RSA xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx
debug1: Host 'amalthea' is known and matches the RSA host key.
debug1: Found key in /home/stijn/.ssh/known_hosts:2
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
Arch Linux (Overlord) Amalthea 
Welcome home :-)
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/stijn/.ssh/id_rsa-amalthea
debug1: Server accepts key: pkalg ssh-rsa blen 277
Connection closed by 10.0.0.15

As you can see the server accepts the key yet locks me out. Any clues? Powercycling it did not help.

Last edited by .:B:. (2011-08-12 15:31:02)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#2 2011-08-09 17:09:30

foutrelis
Developer
From: Athens, Greece
Registered: 2008-07-28
Posts: 705
Website

Re: [Solved] Locked out by OpenSSH, ssh -v not providing any clues

I'd look inside /var/log/auth.log for hints.

Offline

#3 2011-08-09 17:12:12

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: [Solved] Locked out by OpenSSH, ssh -v not providing any clues

for that he has to get access to the machine.

Offline

#4 2011-08-09 17:24:43

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [Solved] Locked out by OpenSSH, ssh -v not providing any clues

It's my own server, so if that's necessary, I can do that, but I'd rather not - onboard GPU is disabled, and it's just the box itself sitting there on the network.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2011-08-09 17:56:20

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [Solved] Locked out by OpenSSH, ssh -v not providing any clues

Well, looks like rtorrent isn't running anymore on my server either, and that's launched with my UID. So it looks like an account configuration problem... I have some reconfiguration to do.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2011-08-12 15:23:43

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: [Solved] Locked out by OpenSSH, ssh -v not providing any clues

Okay. So I managed to hook up my server to a monitor and keyboard. It won't even let me in on a tty - I can type a username, press Enter, but never get a password prompt, it just throws me right back to the login prompt again.

Booting from a USB stick reveals there is a problem with PAM and libtirpc - the pam_unix.so module fails to load because libtirpc.so.1 reports an undefined symbol _des_crypt_call. Seems to be fixed by a libtirpc reinstall smile.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB