Questions tagged [pysftp]

pysftp is a thin wrapper over paramiko's SFTPClient.

pysftp is a thin wrapper over 's SFTPClient.

372 questions
2
votes
4 answers

Python pysft/paramiko 'EOF during negotiation' error

I'm using pysftp to download and upload some files. This exact same code I just run an hour before and was fine, but now I got this 'EOF during negotiation' error. What am I missing here? >>> sftp = pysftp.Connection(host, username=user,…
Maviles
  • 3,209
  • 2
  • 25
  • 39
2
votes
1 answer

PyCrypto is throwing an Invalid Syntax Error when I import pysftp

I am making an SFTP application that connects to my schools server where I have to upload my Python Programs to for class. After adding pysftp, pycrypto and paramiko to the Python 3.5 Library I tried importing the pysftp module only to get an…
pjmorin0001
  • 79
  • 3
  • 10
2
votes
0 answers

Setting a timeout for pysftps' get()

pysftp's get() method sometime hangs. For example if I execute the following to download a file: import pysftp #pip install sftp import sys hostname = "128.65.45.12" username = "bob" password = "123456" sftp = pysftp.Connection(hostname,…
Franck Dernoncourt
  • 77,520
  • 72
  • 342
  • 501
2
votes
3 answers

pysftp, paramiko, grequests: Error reading SSH protocol banner

I am trying to open an SFTP connection from an ipython session. However my code import grequests import pysftp sftp = pysftp.Connection( 'ftp.server.com', port=2255, username='myname', private_key='/Users/myname/.ssh/rsa') raises Traceback (most…
malte
  • 559
  • 1
  • 8
  • 25
2
votes
2 answers

Python SFTP issues

I wrote a program that will look at a text file and export the errors within the file to another txt file. Then the program goes to a linux host via sftp and transfer the file to a specific location. However, I'm getting an error when running this…
zooted
  • 165
  • 1
  • 1
  • 12
2
votes
1 answer

pysftp and paramiko stop uploading files after a few seconds

I am using python 3.4 and pysftp , (pysftp suspected to be working on 3.4) Pysftp is a wrapper over paramiko. I have no problem downloading files. I can also upload small files. When i am uploading files that take longer than a few seconds to…
timeyyy
  • 654
  • 9
  • 20
2
votes
1 answer

Python script to upload a file to a remote server

I am working on a project that requires us to upload a vile via SFTP to a remote server, and we are having troubles doing this. We tried following this youtube guide, but we are having some issues. We are getting a "no such file" error when we run…
user3641889
  • 21
  • 1
  • 2
2
votes
2 answers

How to execute remote pysftp commands under a specific shell

I use python module pysftp to connect to remote server. Below you can see python code : import pysftp import sys import sqr_common srv = pysftp.Connection(host="xxxxxx", username="xxxx", password="xxxxx") command =…
user2746078
  • 107
  • 4
  • 11
2
votes
1 answer

Paramiko ssh_config parameters

I'm using python with paramiko (wrapped in pysftp) and there appears to be an issue where it will hang for a long time if it cannot authenticate during ssh. I can't figure out a way to set a timeout for the connection and I'm cycling through many…
user1420676
  • 21
  • 1
  • 2
1
vote
2 answers

Paramiko SFTPClient class throws "Authentication failed", but Transport class and WinSCP work

I have an issue using Paramiko and connecting to an SFTP server. The connecting work fine using same credentials in WinSCP. I am also able to use pysftp. But I would prefer to be able to use Paramiko, which gives access to better control of timeouts…
jakobdo
  • 1,282
  • 14
  • 20
1
vote
1 answer

Python OSError: Failure with SFTP

I'm testing SFTP communication on a Windows 11 laptop with SFTP server running at localhost:3373. An sftp.get request generates an "OSError: Failure" error with this code: import pysftp remotepath =…
Henry Thornton
  • 4,381
  • 9
  • 36
  • 43
1
vote
0 answers

PySFTP file transfer suddenly slower than before

Background: I have a python backup script on a local server that runs periodically every night at midnight and transfers files from a remote server to the local one using pysftp. It ran perfectly fine for about a month, the average script runtime…
Nab
  • 36
  • 5
1
vote
3 answers

Python pysftp upload using put_r fails with "Not a directory"

I'm trying to copy a file from my local to an SFTP but somehow I keep getting stuck in some error that I'm not able to fix. I attach below the code I wrote since now taking as examples what I found here on Stack Overflow. local_dir =…
GLTCL
  • 13
  • 3
1
vote
1 answer

Download files from SFTP server to specific local directory using Python pysftp

I'm attempting to download a set of files from an SFTP server. I can download the files successfully, but now I want to change the script so that as the files download, they go to a specified directory on my local server. I attempted doing this with…
Tyler Moore
  • 133
  • 1
  • 9
1
vote
0 answers

stat() check causing issues when transferring files with pysftp

We have a Python process to SFTP files to various customers. A normal put with pysftp will also do a stat to confirm file size. We have one customer where we must skip this stat check with parameter confirm=false. If we do not skip this check, we…