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
>
Il Tue, 06 Oct 2009 12:26:34 -0800, Joshua Kugler ha scritto:
> 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...@bagv
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.129
> Connecting to 192.168.92.129...
> sf
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:
> > On Ja
On 8 Jan, 18:49, Mike Hjorleifsson wrote:
> On Jan 8, 10:39 am, loial wrote:
>
> > Is it possible to usesftpwithout 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
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 can dicti
Dear Mike,
Thanks for your help, but I am new in paramiko,would you please help me
more?
May I connect to server by password insted of private key? How?
I used this code:
...
t.auth_password(username, password, event)
...
but I received this error :
paramiko.SSHException : No existing session
I
here is a snippet that works, you need to replace the default data or
create a database etc.. and the fields to store it
you also need to generate and share your public key to the receiving
server to avoid password prompt
# Standard library imports
import os
import sys
import time
import tracebac
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.error: (10061, 'Connection refused')
>
> Did you try
>
> sftp LinuxCompu
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 confirm it's got a listener on port 22?
--
http://mai
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
> utilize SFTP for file transfer
11 matches
Mail list logo