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
>
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
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
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
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.
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
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
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:
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
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
Is it possible to use sftp without a password from python?
--
http://mail.python.org/mailman/listinfo/python-list
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
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 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 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
= 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
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(
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
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
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
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
> 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
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
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
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
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
> 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
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 ?
--
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.
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
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
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
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
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
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.
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
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
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
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
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.
&
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
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
>
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
>
> "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
"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
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
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
47 matches
Mail list logo