Re: [paramiko] Problem with Solaris 5.9

2010-04-23 Thread Robey Pointer
On 13 Apr 2010, at 09:42, Marcin Krol wrote:

> Hello James,
> 
> I swear it's real this time. :-)
> 
> So I have this code:
> 
>try:
>channel = transport.open_session()
>except Exception, e:
>return str(e)
> 
> 
> ..and I traced execution of the program in winpdb:
> 
> 
> 1. before "channel = transport.open_session()" I have transport alive:
> 
> transport  (active; 0 open channel(s))>
> 
> 
> 
> 2. after "channel = transport.open_session()" transport becomes dead for some 
> reason:
> 
> transport 
> 
> 
> FWIW,
> 
> channel becomes None after the call.

Try turning on the debug log on the paramiko side -- what does it say?

robey


___
paramiko mailing list
paramiko@lag.net
http://www.lag.net/cgi-bin/mailman/listinfo/paramiko


[paramiko] Problem with Solaris 5.9

2010-04-13 Thread Marcin Krol

Hello James,

P.S.

I ran sshd -d on that Solaris box:

This is with normal scp:

bash-2.05# /usr/lib/ssh/sshd -d
debug1: sshd version Sun_SSH_1.0
debug1: Bad RSA1 key file /etc/ssh/ssh_host_rsa_key.
debug1: read SSH2 private key done: name rsa w/o comment success 1
debug1: load_private_key_autodetect: type 1 RSA
debug1: Bad RSA1 key file /etc/ssh/ssh_host_dsa_key.
debug1: read SSH2 private key done: name dsa w/o comment success 1
debug1: load_private_key_autodetect: type 2 DSA
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Server will not fork when running in debugging mode.
Connection from 9.156.46.29 port 37131
debug1: Client protocol version 2.0; client software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat ^OpenSSH
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-Sun_SSH_1.0
debug1: Rhosts Authentication disabled, originating port not trusted.
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: sent kexinit: diffie-hellman-group1-sha1
debug1: sent kexinit: ssh-rsa,ssh-dss
debug1: sent kexinit: aes128-cbc,blowfish-cbc,3des-cbc
debug1: sent kexinit: aes128-cbc,blowfish-cbc,3des-cbc
debug1: sent kexinit: hmac-sha1,hmac-md5
debug1: sent kexinit: hmac-sha1,hmac-md5
debug1: sent kexinit: none,zlib
debug1: sent kexinit: none,zlib
debug1: sent kexinit: 
C,geo,lcttab,iso_8859_15,iso_8859_1,iso_8859_2,hi_IN.UTF-8,cs_CZ,cs_CZ.ISO8859-2,cz,de,de.ISO8859-15,de.UTF-8,de_AT,de_AT.ISO8859-1,de_AT.ISO8859-15,de_at.iso8859...@euro,de_CH,de_CH.ISO8859-1,de_DE,de_DE.ISO8859-1,de_DE.ISO8859-15,de_de.iso8859...@euro,de_DE.UTF-8,de_de.ut...@euro,fr,fr_CH,fr_CH.ISO8859-1,hu,hu_HU,hu_HU.ISO8859-2,pl,pl.UTF-8,pl_PL,pl_PL.ISO8859-2,pl_PL.UTF-8,sk_SK,sk_SK.ISO8859-2,th,th_TH,th_TH.ISO8859-11,th_TH.TIS620,th_TH.UTF-8
debug1: sent kexinit: 
C,geo,lcttab,iso_8859_15,iso_8859_1,iso_8859_2,hi_IN.UTF-8,cs_CZ,cs_CZ.ISO8859-2,cz,de,de.ISO8859-15,de.UTF-8,de_AT,de_AT.ISO8859-1,de_AT.ISO8859-15,de_at.iso8859...@euro,de_CH,de_CH.ISO8859-1,de_DE,de_DE.ISO8859-1,de_DE.ISO8859-15,de_de.iso8859...@euro,de_DE.UTF-8,de_de.ut...@euro,fr,fr_CH,fr_CH.ISO8859-1,hu,hu_HU,hu_HU.ISO8859-2,pl,pl.UTF-8,pl_PL,pl_PL.ISO8859-2,pl_PL.UTF-8,sk_SK,sk_SK.ISO8859-2,th,th_TH,th_TH.ISO8859-11,th_TH.TIS620,th_TH.UTF-8

debug1: send KEXINIT
debug1: done
debug1: wait KEXINIT
debug1: got kexinit: 
diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

debug1: got kexinit: ssh-rsa,ssh-dss
debug1: got kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-...@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug1: got kexinit: 
aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,rijndael-...@lysator.liu.se,aes128-ctr,aes192-ctr,aes256-ctr
debug1: got kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96
debug1: got kexinit: 
hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd...@openssh.com,hmac-sha1-96,hmac-md5-96

debug1: got kexinit: none,z...@openssh.com,zlib
debug1: got kexinit: none,z...@openssh.com,zlib
debug1: got kexinit:
debug1: got kexinit:
debug1: first kex follow: 0
debug1: reserved: 0
debug1: done
debug1: kex: client->server unable to decide common locale
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: kex: server->client unable to decide common locale
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: bits set: 492/1024
debug1: Wait SSH2_MSG_KEXDH_INIT.
debug1: bits set: 529/1024
debug1: send SSH2_MSG_NEWKEYS.
debug1: done: send SSH2_MSG_NEWKEYS.
debug1: Wait SSH2_MSG_NEWKEYS.
debug1: GOT SSH2_MSG_NEWKEYS.
debug1: done: KEX2.
debug1: options.max_auth_tries = 6
debug1: userauth-request for user root service ssh-connection method none
debug1: attempt 0 failures 0
debug1: Starting up PAM with username "root"
debug1: PAM Password authentication for "root" failed[9]: Authentication 
failed

Failed none for root from 9.156.46.29 port 37131 ssh2
debug1: options.max_auth_tries = 6
debug1: userauth-request for user root service ssh-connection method 
publickey

debug1: attempt 1 failures 1
debug1: test whether pkalg/pkblob are acceptable
debug1: matching key found: file //.ssh/authorized_keys, line 2
Could not reverse map address :::9.156.46.29.
debug1: PAM setting rhost to "9.156.46.29"
debug1: PAM setting user to "root"
Postponed publickey for root from 9.156.46.29 port 37131 ssh2
debug1: options.max_auth_tries = 6
debug1: userauth-request for user root service ssh-connection method 
publickey

debug1: attempt 2 failures 1
debug1: matching key found: file //.ssh/authorized_keys, line 2
debug1: len 55 datafellows 0
debug1: ssh_dss_verify: signature correct
debug1: PAM setting rhost to "9.156.46.29"
debug1: PAM setting user to "root"
Accepted publickey for root from 9.156.46.29 port 37131 ssh2
debug1: Entering interactive session for SSH2.
debug1: server_init_dispatch_20
debug1: server_input_channel_o

[paramiko] Problem with Solaris 5.9

2010-04-13 Thread Marcin Krol

Hello James,

I swear it's real this time. :-)

So I have this code:

try:
channel = transport.open_session()
except Exception, e:
return str(e)


..and I traced execution of the program in winpdb:


1. before "channel = transport.open_session()" I have transport alive:

transport bits) (active; 0 open channel(s))>




2. after "channel = transport.open_session()" transport becomes dead for 
some reason:


transport 


FWIW,

channel becomes None after the call.




--

Regards,
mk

--
Premature optimization is the root of all fun.

___
paramiko mailing list
paramiko@lag.net
http://www.lag.net/cgi-bin/mailman/listinfo/paramiko