Re: Sftp error New Help

2015-05-19 Thread dieter
ejmmann...@gmail.com writes: > Traceback (most recent call last): > File "Juniper.py", line 66, in > device_information() > File "Juniper.py", line 26, in device_information > device_connection(dev_ip,dev_username,dev_password) > File "Juniper.py", line 54, in device_connection >

Sftp error New Help

2015-05-19 Thread ejmmanning
Traceback (most recent call last): File "Juniper.py", line 66, in device_information() File "Juniper.py", line 26, in device_information device_connection(dev_ip,dev_username,dev_password) File "Juniper.py", line 54, in device_connection sftp_transfer(r) File "Juniper.py", line

SFTP: max bytes to be transferred

2010-12-01 Thread Dario Beraldi
Hello, I'm using the module paramiko to transfer files via sftp (see code below). I would like to specify the maximum amount of bytes to be transferred (say 10MB, if the file is bigger just transfer up to these many bytes). From the docs of paramiko (http://www.lag.net/paramiko

Re: sftp login without password

2009-10-08 Thread David
orrect because if, at console, I type >> >> bags...@bagvapp:~$ sftp bags...@192.168.92.129 >> Connecting to 192.168.92.129... >> sftp> >> >> I get a successful login. How can I get an sftp login without using a >> password in python? >> I am using Ubuntu

Re: sftp login without password

2009-10-06 Thread Joshua Kugler
David wrote: > transport.connect(username = username, pkey = mykey) > > I get a "AuthenticationException: Authentication failed." exception. > > > My ~/.ssh/id_rsa is correct because if, at console, I type > > bags...@bagvapp:~$ sftp bags...@192.168.92.

sftp login without password

2009-10-05 Thread David
I am trying to get a login using rsa_key with python. I have successfully installed paramiko and followed this tutorial: http://commandline.org.uk/python/sftp-python/ If I use the password transport.connect(username = username, password = password) I get a successful login but, I use the SSH

SFTP libraries in pure Python?

2009-04-03 Thread hirudo #1
Hi, I am looking for SFTP libraries that are written in pure Python. I already checked out paramiko, but as far as I can see, it requires pycrypto, which is not pure Python. Another candidate, Twisted, isn't pure Python either. I don't really care about speed as much as about p

Re: sftp with no password from python

2009-01-09 Thread Jorge Mazzonelli
You should try the paramiko package for that (http://www.lag.net/paramiko/) A google search on that package & SFTP got me this example: http://commandline.org.uk/python/sftp-python/ Cheers Jorge On Fri, Jan 9, 2009 at 1:20 PM, loial wrote: > On 8 Jan, 18:49, Mike Hjorleifsson wrote:

Re: sftp with no password from python

2009-01-09 Thread loial
ers then lock off the > ability to accept passwords at all, this way no one can dictionary > attack my ssh servers. Thanks...do you have any python examples of using sftp? -- http://mail.python.org/mailman/listinfo/python-list

Re: sftp with no password from python

2009-01-08 Thread Mike Hjorleifsson
On Jan 8, 10:39 am, loial wrote: > Is it possible to use sftp without a password from python? Yes you can use keys you preestablish between the server and client so you dont need passwords, i do this on all my servers then lock off the ability to accept passwords at all, this way no one

sftp with no password from python

2009-01-08 Thread loial
Is it possible to use sftp without a password from python? -- http://mail.python.org/mailman/listinfo/python-list

How to Setup SFTP Server using twisted

2008-11-29 Thread Siah
The only implementation I could find is mangled with Zope. Anyone has any resources handy on the subject? Thank you in advanced, Sia -- http://mail.python.org/mailman/listinfo/python-list

Re: which program I need for sftp using pramiko??

2008-10-22 Thread Larry Bates
sa6113 wrote: which program I have to install for using paramiko for sftp between a two windows machine in local network?? I have installed freeSSHd for server machine but I got an Authentication failed erro when try to connect to server using this code : sock.connect((hostname, port)) t

which program I need for sftp using paramiko??

2008-10-22 Thread sa6113
which program I have to install for using paramiko for sftp between a two windows machine in local network?? I have installed freeSSHd for server machine but I got an Authentication failed erro when try to connect to server using this code : sock.connect((hostname, port)) t

which program I need for sftp using pramiko??

2008-10-22 Thread sa6113
which program I have to install for using paramiko for sftp between a two windows machine in local network?? I have installed freeSSHd for server machine but I got an Authentication failed erro when try to connect to server using this code : sock.connect((hostname, port)) t

Re: sftp problem!

2008-10-06 Thread sa6113
= paramiko.DSSKey.from_private_key_file(pkey_path) > > paramiko.util.log_to_file('transfer.log') > logger = paramiko.util.get_logger('paramiko') > > try: > # set up connection > t = paramiko.Transport((hostname, port)) > t.connect(username=u

Re: sftp problem!

2008-10-05 Thread Mike Hjorleifsson
os.path.expanduser('~/.ssh/id_dsa') pkey = paramiko.DSSKey.from_private_key_file(pkey_path) paramiko.util.log_to_file('transfer.log') logger = paramiko.util.get_logger('paramiko') try: # set up connection t = paramiko.Transport((hostname, port)) t.connect(

Re: sftp problem!

2008-10-05 Thread sa6113
what do you mean? Lawrence D'Oliveiro wrote: > > In message <[EMAIL PROTECTED]>, sa6113 > wrote: > >> host = "LinuxComputerName" (or its Ip) >> port = 22 >> >> and after runing this code I get this error: >> socket.erro

Re: sftp problem!

2008-10-05 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, sa6113 wrote: > host = "LinuxComputerName" (or its Ip) > port = 22 > > and after runing this code I get this error: > socket.error: (10061, 'Connection refused') Did you try sftp LinuxComputerName just to confir

sftp problem!

2008-10-04 Thread sa6113
I want to use sftp from paramiko to copy a file from a windows machine to a Linux in the network, I use this code : host = "LinuxComputerName" (or its Ip) port = 22 transport = paramiko.Transport((host, port)) password = "LinuxComputerPassword" username = &q

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-13 Thread Michele Hjorleifsson
wow been going nuts here after cutting and pasting to get a working test so i ran demo.py ... and its not me.. i changed the hostname for obvious reasongs, the id_dsa file does exist. i can sftp from bash no problem. there is NO password on the key Any ideas ? here is what i get. Hostname

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-07 Thread Martin v. Löwis
> sorry i meant a code example that i pass the id_dsa.pub file contents > too > so i am not reliant on the host system to have the ssh-agent. c.connect("",username="loewis",key_filename=".ssh/identity") works for me with ssh-agent disabled. Regards, Martin -- http://mail.python.org/mailman/list

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-07 Thread Todd Whiteman
Mike Hjorleifsson wrote: > I wrote a lil module using paramiko's module to send a file via > sftp.. it works great using the username and password. > I would prefer to use id_dsa.pub to have an autologon and not save > the > password anywhere on the disk.. I cant find a good ex

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Mike Hjorleifsson
sorry i meant a code example that i pass the id_dsa.pub file contents too so i am not reliant on the host system to have the ssh-agent. On Feb 6, 3:09 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Mike Hjorleifsson wrote: > > Thanks for the response, is there an example bit of code somewhere

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Martin v. Löwis
Mike Hjorleifsson wrote: > Thanks for the response, is there an example bit of code somewhere i > could digest ? I did c.connect("",username="loewis") with ssh-agent, and it worked just fine. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Mike Hjorleifsson
Thanks for the response, is there an example bit of code somewhere i could digest ? On Feb 6, 1:35 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > I wrote a lil module using paramiko's module to send a file via > > sftp.. it works great using the username an

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Martin v. Löwis
> I wrote a lil module using paramiko's module to send a file via > sftp.. it works great using the username and password. > I would prefer to use id_dsa.pub to have an autologon and not save > the > password anywhere on the disk.. I cant find a good example of this. > Can

Paramiko SFTP autologon using id_dsa.pub

2008-02-05 Thread Mike Hjorleifsson
I wrote a lil module using paramiko's module to send a file via sftp.. it works great using the username and password. I would prefer to use id_dsa.pub to have an autologon and not save the password anywhere on the disk.. I cant find a good example of this. Can anyone help ? --

Re: twisted: problem with sftp-client

2008-01-23 Thread Jean-Paul Calderone
ol, which in the end shall connect to an >sftp-server, take the list of files in a specified directory, searches >for some special names and mailes them to different persons. > >I am only at the start at the moment. As orientation I use the cftp.py >programm from twisted.

twisted: problem with sftp-client

2008-01-23 Thread Kristian Domke
Hello Folks, I don't know, if it is ok to post large portions of code, but I have really no idea where the problem lies, so I don't have much of a choice. I am programming a tool, which in the end shall connect to an sftp-server, take the list of files in a specified directory, searche

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 ser

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. Y

Re: implementing SFTP using Python

2007-03-05 Thread kadarla kiran kumar
t 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

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 wan

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.

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. P

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Lad
Avell Diroll wrote: > Lad wrote: > > Is there a module in Python available that I can use for uploading > > files via > > SFTP (SSH File Transfer Protocol)? > > Or do you think that FTP protocol for files uploading is OK? > > Thank you for replies > > L

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Avell Diroll
Lad wrote: > Is there a module in Python available that I can use for uploading > files via > SFTP (SSH File Transfer Protocol)? > Or do you think that FTP protocol for files uploading is OK? > Thank you for replies > Lad. > I believe there are many of those, personally

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Jan Dries
Lad wrote: > Is there a module in Python available that I can use for uploading > files via > SFTP (SSH File Transfer Protocol)? > Or do you think that FTP protocol for files uploading is OK? > Thank you for replies > Lad. You probably want Paramiko (http://www.lag.net/param

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Jean-Paul Calderone
On 11 Dec 2006 07:29:27 -0800, Lad <[EMAIL PROTECTED]> wrote: >Is there a module in Python available that I can use for uploading >files via > SFTP (SSH File Transfer Protocol)? >Or do you think that FTP protocol for files uploading is OK? >Thank you for replies >Lad. &

SSH File Transfer Protocol or SFTP

2006-12-11 Thread Lad
Is there a module in Python available that I can use for uploading files via SFTP (SSH File Transfer Protocol)? Or do you think that FTP protocol for files uploading is OK? Thank you for replies Lad. -- http://mail.python.org/mailman/listinfo/python-list

Re: SFTP

2005-06-03 Thread Martin Franklin
Kornfeld Rick (sys1rak) wrote: > Good Morning > > I have scoured the internet looking for an Python SFTP API. So far, I > have been unable to find a suitable answer. Our needs are pretty basic. > FTP & TELNET are being removed from our environment and I need to >

SFTP

2005-06-03 Thread Kornfeld Rick (sys1rak)
Title: Message Good Morning   I have scoured the internet looking for an Python SFTP API. So far, I have been unable to find a suitable answer. Our needs are pretty basic. FTP & TELNET are being removed from our environment and I need to utilize SFTP for file transfers.   As is prob

Re: FTPLIB & FTPS or SFTP?

2005-01-20 Thread Peter A.Schott
> > "Peter A. Schott" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > have a handful of partners who use FTPS or SFTP and I need to pull/push > > files > > to/from them. > > For SFTP, run don't walk, over to http://www.lag.net/p

Re: FTPLIB & FTPS or SFTP?

2005-01-19 Thread Roger Binns
"Peter A. Schott" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > have a handful of partners who use FTPS or SFTP and I need to pull/push files > to/from them. For SFTP, run don't walk, over to http://www.lag.net/paramiko/ Paramiko is a pure Python(*) im

Re: FTPLIB & FTPS or SFTP?

2005-01-19 Thread srijit
To the best of my knowledge ftplib does not support SFTP or FTPS. I hope Paramiko (http://www.lag.net/paramiko/) serves your purpose. Paramiko supports POSIX, Windows and MacOSX Regards, /Srijit Peter A. Schott wrote: > Does the ftplib support SFTP or FTPS? Is that part of a different mod

FTPLIB & FTPS or SFTP?

2005-01-19 Thread Peter A.Schott
Does the ftplib support SFTP or FTPS? Is that part of a different module? We have a handful of partners who use FTPS or SFTP and I need to pull/push files to/from them. Thank you for all of your help. -Pete Schott -- http://mail.python.org/mailman/listinfo/python-list