[paramiko] Debugging a remote connection

jay titleistfour at gmail.com
Fri Nov 16 12:28:35 PST 2007


Hello,

I have a remote SFTP, not managed by me, that I am unable to connect
to with Paramiko.  The demo scripts won't even connect.  All I get is
Authentication password failed.  However, I can take the same host,
username and password, past it into any other client, and it works
fine without problems.  That includes Openssh sftp, filezilla, winscp
and putty.

What type of debugging could I possibly do to figure this out?

Here is the output from the demo_sftp.py script

DEB [20071116-14:01:49.616] thr=1   paramiko.transport: starting
thread (client mode): 0xf6c69c8cL
INF [20071116-14:01:49.770] thr=1   paramiko.transport: Connected
(version 1.99, client OpenSSH_3.8.1p1)
DEB [20071116-14:01:49.867] thr=1   paramiko.transport: kex
algos:['diffie-hellman-group-exchange-sha1',
'diffie-hellman-group1-sha1'] server key:['ssh-rsa', 'ssh-dss'] client
encrypt:['aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc',
'arcfour', 'aes192-cbc', 'aes256-cbc', 'rijndael-cbc at lysator.liu.se',
'aes128-ctr', 'aes192-ctr', 'aes256-ctr'] server
encrypt:['aes128-cbc', '3des-cbc', 'blowfish-cbc', 'cast128-cbc',
'arcfour', 'aes192-cbc', 'aes256-cbc', 'rijndael-cbc at lysator.liu.se',
'aes128-ctr', 'aes192-ctr', 'aes256-ctr'] client mac:['hmac-md5',
'hmac-sha1', 'hmac-ripemd160', 'hmac-ripemd160 at openssh.com',
'hmac-sha1-96', 'hmac-md5-96'] server mac:['hmac-md5', 'hmac-sha1',
'hmac-ripemd160', 'hmac-ripemd160 at openssh.com', 'hmac-sha1-96',
'hmac-md5-96'] client compress:['none', 'zlib'] server
compress:['none', 'zlib'] client lang:[''] server lang:[''] kex
follows?False
DEB [20071116-14:01:49.868] thr=1   paramiko.transport: Ciphers
agreed: local=aes128-cbc, remote=aes128-cbc
DEB [20071116-14:01:49.868] thr=1   paramiko.transport: using kex
diffie-hellman-group1-sha1; server key type ssh-rsa; cipher: local
aes128-cbc, remote aes128-cbc; mac: local hmac-sha1, remote hmac-sha1;
compression: local none, remote none
DEB [20071116-14:01:50.102] thr=1   paramiko.transport: Switch to new keys ...
DEB [20071116-14:01:50.108] thr=2   paramiko.transport: Host key
verified (ssh-rsa)
DEB [20071116-14:01:50.108] thr=2   paramiko.transport: Attempting
password auth...
DEB [20071116-14:01:50.283] thr=1   paramiko.transport: userauth is OK
INF [20071116-14:01:50.470] thr=1   paramiko.transport: Authentication
(password) failed.
DEB [20071116-14:01:50.572] thr=1   paramiko.transport: EOF in transport thread

I get the same thing no matter what I try.  I've tried moving my
script to other boxes with differing versions of python, and same
problem.  Connecting to other boxes with the same code yields a
successful connection, python and paramiko are working on all remote
systems but this one.  I'm a bit perplexed as to why this box won't
allow me to login.

Is there any way to increase the verbosity of the debugging output?
Perhaps that would yield something helpful.  Thanks for any input

Jay



More information about the paramiko mailing list