[PLUG] sshpass and ubuntu

Carlos Konstanski ckonstanski at pippiandcarlos.com
Mon Mar 28 21:34:37 UTC 2011


On 03/28/2011 03:13 PM, chris (fool) mccraw wrote:
> On Mon, Mar 28, 2011 at 14:02, Carlos Konstanski
> <ckonstanski at pippiandcarlos.com> wrote:
>> I am trying to use sshpass to log onto an Ubuntu server. While sshpass works
>> great when logging onto Gentoo hosts, it hangs forever when connecting to
>> Ubuntu hosts. I tried fiddling with sshd_config with no luck. Any ideas?
> 
> verbose output from client and server during a failed login would help
> out a lot in any diagnosis i could provide.

Here is the output from the server with LogLevel DEBUG3. I am logging in
with an LDAP account. Logging in normally (ssh ckonstanski at host) works fine.
So any messages claiming that the password is invalid are bunk, unless
sshpass is munging the password. Trying to figure out how to get more
logging on the client end. Any help in this area would be appreciated.

I see what appears to be a failed password lookup. Hard to tell if I can't
determine what it thinks I sent as the password. Hard for me to believe that
sshpass is munging the password though, since I can use it to log onto a
non-Ubuntu server just fine.

fd 5 is not O_NONBLOCK
Forked child 23662.
send_rexec_state: entering fd = 8 config len 647
ssh_msg_send: type 0
send_rexec_state: done
rexec start in 5 out 5 newsock 5 pipe 7 sock 8
inetd sockets after dupping: 3, 3
Connection from 134.50.6.191 port 36340
Client protocol version 2.0; client software version OpenSSH_5.8p1-hpn13v10lpk
match: OpenSSH_5.8p1-hpn13v10lpk pat OpenSSH*
Enabling compatibility mode for protocol 2.0
Local version string SSH-2.0-OpenSSH_5.3p1 Debian-3ubuntu5
fd 3 setting O_NONBLOCK
Network child is on pid 23663
preauth child monitor started
mm_request_receive entering
monitor_read: checking request 0
mm_answer_moduli: got parameters: 1024 1024 8192
mm_request_send entering: type 1
monitor_read: 0 used once, disabling now
mm_request_receive entering
monitor_read: checking request 5
mm_answer_sign
mm_answer_sign: signature 0x7f9f912580f0(271)
mm_request_send entering: type 6
monitor_read: 5 used once, disabling now
mm_request_receive entering
monitor_read: checking request 7
mm_answer_pwnamallow
Trying to reverse map address 134.50.6.191.
parse_server_config: config reprocess config len 647
auth_shadow_acctexpired: today 15061 sp_expire 15094 days left 33
mm_answer_pwnamallow: sending MONITOR_ANS_PWNAM: 1
mm_request_send entering: type 8
monitor_read: 7 used once, disabling now
mm_request_receive entering
monitor_read: checking request 3
mm_answer_authserv: service=ssh-connection, style=, role=
monitor_read: 3 used once, disabling now
mm_request_receive entering
monitor_read: checking request 11
mm_answer_authpassword: sending result 0
mm_request_send entering: type 12
Failed none for ckonstanski from 134.50.6.191 port 36340 ssh2
mm_request_receive entering
monitor_read: checking request 21
mm_answer_keyallowed entering
mm_answer_keyallowed: key_from_blob: 0x7f9f91257a50
Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
Checking blacklist file /etc/ssh/blacklist.RSA-2048
temporarily_use_uid: 1013/512 (e=0/0)
trying public key file /home/geology/undergrads/ckonstanski/.ssh/authorized_keys
restore_uid: 0/0
temporarily_use_uid: 1013/512 (e=0/0)
trying public key file
/home/geology/undergrads/ckonstanski/.ssh/authorized_keys2
restore_uid: 0/0
Failed publickey for ckonstanski from 134.50.6.191 port 36340 ssh2
mm_answer_keyallowed: key 0x7f9f91257a50 is not allowed
mm_request_send entering: type 22
mm_request_receive entering



More information about the PLUG mailing list