Re: implementing SFTP using Python

2007-03-08 Thread Ravi Terala
Kiran,

You should look into Twisted Python and their Twisted Python Conch 
package. You might not need to reinvent the wheel.
http://twistedmatrix.com/trac/wiki/TwistedConch

Ravi

kadarla kiran kumar wrote:
> Hi Everybody,
>  
> I have to implement SFTP conection from client to the server using 
> Python script.
> Iam very new new to python , and i dont't have much time to complete 
> this. So I need some pointers from you.
>  
> If anybody has already done this kind of stuff, please let me know. 
> Please don't think Iam over ambitious, but i need some kind of Pseudo 
> code ,if possible source code.
>  
> Thanks in Advance,
> K.Kiran Kumar
> 
> 
> Never Miss an Email
> Stay connected with Yahoo! Mail on your mobile. Get started! 
> 
>  
> 
> 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: implementing SFTP using Python

2007-03-05 Thread Ben Finney
kadarla kiran kumar <[EMAIL PROTECTED]> writes:

Please don't top-post; instead, place your reply directly beneath the
quoted text you're responding to, and remove any quoted lines that
aren't relevant to your response.

>   Now Iam trying to run the demo scripts available with paramiko package.

You've gone further than me, then. Hopefully you can find help from
someone more experienced with that package; perhaps it has its own
support mailing list, or a developer contact email address.

-- 
 \ "He who laughs last, thinks slowest."  -- Anonymous |
  `\   |
_o__)  |
Ben Finney

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: implementing SFTP using Python

2007-03-05 Thread kadarla kiran kumar
  @Ben Finney
   
  I have downloaded paramiko-1.6 package, pcrypto 2.0.1 package
  platform: windows XP
   
  Now Iam trying to run the demo scripts available with paramiko package.
  I have tried using the same system for both cleint(demo_simple.py) and the 
server(demo_server.py) but it is failing at socket.connect()
   
  Can you please tell me ..what all i need to setup , to establish a conection 
between Client and server. 
   
  The log of error , 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 [EMAIL PROTECTED]: [EMAIL PROTECTED]
*** Unable to open host keys file
hostname:10.220.10.15 port:22
*** Caught exception: : 
Authentication failed.
Traceback (most recent call last):
  File "C:\paramiko-1.6\paramiko-1.6\demos\demo_simple.py", line 85, in 
t.connect(username=username, password=password, hostkey=hostkey)
  File "C:\Python25\Lib\site-packages\paramiko\transport.py", line 851, in 
connect
self.auth_password(username, password)
  File "C:\Python25\Lib\site-packages\paramiko\transport.py", line 1012, in 
auth_password
return self.auth_handler.wait_for_response(my_event)
  File "C:\Python25\Lib\site-packages\paramiko\auth_handler.py", line 174, in 
wait_for_response
raise e
AuthenticationException: Authentication failed.
Traceback (most recent call last):
  File "C:\paramiko-1.6\paramiko-1.6\demos\demo_simple.py", line 102, in 

sys.exit(1)
SystemExit: 1
   
   
  THANKS IN ADVANCE
  K. KIRAN KUMAR
   
   
   
   
   
   
   
   

kadarla kiran kumar writes:

> I have to implement SFTP conection from client to the server using
> Python script. Iam very new new to python , and i dont't have much
> time to complete this. So I need some pointers from you.

You will probably want to investigate the "paramiko" package, a
pure-Python implementation of the SSH2 protocol.







 
-
The fish are biting.
 Get more visitors on your site using Yahoo! Search Marketing.-- 
http://mail.python.org/mailman/listinfo/python-list

Re: implementing SFTP using Python

2007-03-02 Thread Ben Finney
kadarla kiran kumar <[EMAIL PROTECTED]> writes:

> I have to implement SFTP conection from client to the server using
> Python script.  Iam very new new to python , and i dont't have much
> time to complete this. So I need some pointers from you.

You will probably want to investigate the "paramiko" package, a
pure-Python implementation of the SSH2 protocol.

http://www.lag.net/paramiko/>

On Debian ("etch" or newer), you can install the 'python-paramiko'
package. Alternatively, download it from the website.

-- 
 \   "I was in a bar the other night, hopping from barstool to |
  `\ barstool, trying to get lucky, but there wasn't any gum under |
_o__)any of them."  -- Emo Philips |
Ben Finney

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: implementing SFTP using Python

2007-03-02 Thread Jean-Paul Calderone
On Fri, 2 Mar 2007 20:42:55 -0800 (PST), kadarla kiran kumar <[EMAIL 
PROTECTED]> wrote:
>Hi Everybody,
>
>  I have to implement SFTP conection from client to the server using Python 
> script.
>  Iam very new new to python , and i dont't have much time to complete this. 
> So I need some pointers from you.
>
>  If anybody has already done this kind of stuff, please let me know. Please 
> don't think Iam over ambitious, but i need some kind of Pseudo code ,if 
> possible source code.

http://www.google.com/search?hl=en&safe=off&q=%22python+sftp+server%22&btnG=Search
 might be a place to start.

Jean-Paul
-- 
http://mail.python.org/mailman/listinfo/python-list


implementing SFTP using Python

2007-03-02 Thread kadarla kiran kumar
Hi Everybody,
   
  I have to implement SFTP conection from client to the server using Python 
script.
  Iam very new new to python , and i dont't have much time to complete this. So 
I need some pointers from you.
   
  If anybody has already done this kind of stuff, please let me know. Please 
don't think Iam over ambitious, but i need some kind of Pseudo code ,if 
possible source code.
   
  Thanks in Advance,
  K.Kiran Kumar

 
-
Never Miss an Email
Stay connected with Yahoo! Mail on your mobile. Get started!-- 
http://mail.python.org/mailman/listinfo/python-list