[paramiko] Debugging a remote connection

Robey Pointer robey at lag.net
Sun Dec 30 22:11:26 PST 2007


On 16 Nov 2007, at 12:28, jay wrote:

> 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?

Unfortunately, the logs are only saying what you said: password auth  
is allowed, but the password isn't accepted by the server. Beyond the  
obvious (make sure the password is spelled out correctly), I can't  
think of any suggestions.

It's possible your other sessions are using a private key to auth, and  
the password is being used to unlock the key. So you might check for a  
key in ~/.ssh/ just in case.

robey




More information about the paramiko mailing list