copying only recent files from one machine to another

2007-03-21 Thread kadarla kiran kumar
Hi Everybody,
   
  Iam trying to copy files from one machine to another over SFTP connection. 
For that Iam using sftp.get  sftp.put methods.
   
  Now, I have to copy only recently created/modified files,i.e, based on 
timestamps from remote machine to my machine. Is there any standard 
implementation for that in python/paramiko ? If not , can anyone suggest me the 
efficient method to implement the same.
   
  Thanks in Advance,
  Kiran Kumar 

 
-
No need to miss a message. Get email on-the-go 
with Yahoo! Mail for Mobile. Get started.-- 
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: class 'paramiko.AuthenticationException': 
Authentication failed.
Traceback (most recent call last):
  File C:\paramiko-1.6\paramiko-1.6\demos\demo_simple.py, line 85, in module
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 
module
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

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