[paramiko] Implementation of SFTP (secure FTP)
Andrew Bennetts
andrew at canonical.com
Mon Mar 5 22:52:34 PST 2007
kadarla kiran kumar wrote:
[...]
> I have installed Python2.5, paramiko 1.6, pcrypto 2.0.1 packages on my windows
> XP machine.I found some demo scripts along with paramiko package. Iam running
> demo_simple(as client) and demo_server (as server) on the same system.
>
> If anybody has implemented this earlier please guide me. If you dont think Iam
> overambitious, if possible ,please send me those python scripts.
>
> The log of errors , when I run demo_simple:
> ==============================
> Hostname: 10.220.10.15:22
> hostnmae: 10.220.10.15 port: 22
> Username [KiranKumar_Kadarla]: aditya
> Warning: Problem with getpass. Passwords may be echoed.
> Password for aditya at 10.220.10.15: hi at 12345
> *** Unable to open host keys file
> hostname:10.220.10.15 port:22
> *** Caught exception: <class 'paramiko.AuthenticationException'>:
> Authentication failed.
If you are running an unmodified demo_server, then it doesn't use your system
username/password authentication, it just has "robey" and "foo" hard-coded:
def check_auth_password(self, username, password):
if (username == 'robey') and (password == 'foo'):
return paramiko.AUTH_SUCCESSFUL
return paramiko.AUTH_FAILED
So, if you want to log in to the demo server, you need to use a username of
"robey" and a password of "foo" (or do publickey authentication with the
demos/user_rsa_key key).
-Andrew.
More information about the paramiko
mailing list