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 >

Re: sftp login without password

2009-10-08 Thread David
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

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.129 > Connecting to 192.168.92.129... > sf

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: > > On Ja

Re: sftp with no password from python

2009-01-09 Thread loial
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

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 can dicti

Re: sftp problem!

2008-10-06 Thread sa6113
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

Re: sftp problem!

2008-10-05 Thread Mike Hjorleifsson
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

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.error: (10061, 'Connection refused') > > Did you try > > sftp LinuxCompu

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 confirm it's got a listener on port 22? -- http://mai

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 > utilize SFTP for file transfer