Questions tagged [pysftp]
pysftp is a thin wrapper over paramiko's SFTPClient.
pysftp
372
questions
0
votes
1
answer
202
views
How to use pysftp with the -o"HostKeyAlgorithms=+ssh-rsa" -o"PubkeyAcceptedKeyTypes=+ssh-rsa" options?
Using paramiko I want to select the list of pubkey algorithm my key is in, do you know how I can run a similar command like:
sftp \
-i private_key.pem \
-P 22 \
-o"HostKeyAlgorithms=+...
0
votes
1
answer
168
views
PYSFTP.listdir_attr() - UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 8: invalid start byte [duplicate]
I'm encountering difficulties when attempting to retrieve a list of files from an SFTP directory in Python (pysftp package). The error is observed at the following code line:
file_list = sftp....
0
votes
0
answers
36
views
paramiko ssh_exception.AuthenticationException: Authentication failed [duplicate]
I have code to connect using sftp with private key. From the same host where i run this code I am able to connect manually to sftp nevertheless getting error when running from code. What could be a ...
0
votes
1
answer
609
views
Failed building wheel for bcrypt when running pip install paramiko
I'm trying run pip install paramiko, but i'm running into the following error :
please help me, i already tried pip update, installing rust. it keep returning this kind of error. i already tried to ...
0
votes
0
answers
34
views
Paramiko throughs error while transferring file from linux server to a directory [ERROR] IsADirectoryError: [Errno 21] Is a directory: '/tmp/upload/
I am trying to transfer a file from linux server to a directory which is Lambda. I am using Paramiko module. I am passing a directory like '/temp/upload/'
IsADirectoryError: [Errno 21] Is a directory: ...
0
votes
0
answers
257
views
Find file on SFTP server that contains string content in Python
Problem
In Python, my task is to find a file (XML) on an external SFTP server that contains
<myTag>BLA</myTag>
The problem is there could be more than 5000 files on the server.
Is there a ...
0
votes
1
answer
401
views
Negotiation failed while trying to connect to SFTP server using Paramiko, but command line SFTP works properly. Same failure with js ssh2-sftp-client
I am trying to move files into an SFTP server at 8001 port using code and not just GUI and command line tools.
FileZilla, sftp CLI in Windows and Linux works just fine.
But somehow the Python code or ...
-1
votes
2
answers
401
views
Problems with deleting file from sftp folder using Python
I am trying to move files into a backup folder which is on the same directory level as the folder where the files are stored. The downloading of the file into a local directory and uploading the file ...
2
votes
0
answers
308
views
SFTP server authentication require username and private key
We have SFTP server with authentication enabled. To access the server we need to provide both the password and private key. I'm able to access the server using winscp. But not able to access using the ...
0
votes
1
answer
146
views
Python pysftp fail with IOError [duplicate]
I'm fairly new to Python and migrating an already running script to a new machine.
The key part of the script is to ftp a file to internal file server.
A snippet of code is:
import pysftp
with pysftp....
-1
votes
1
answer
162
views
pysftp listdir_attr empty on a folder with files
I have a small utility that scans ftp server and does some analytics around available data. This code works fine for many servers but does not work for one particular server. I am sure the data is ...
1
vote
2
answers
2k
views
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, ...
1
vote
1
answer
721
views
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
...
0
votes
1
answer
630
views
OSError: Int or String expected received with pysftp.Connection in kubernetes
I am trying to connect SFTP server using pysftp. I receive below error on pysftp.Connection() in Jupyter notebook running in Kubernetes inside IBM Elyra. Python version is 3.7.6 and pysftp 0.2.9 with ...
1
vote
0
answers
240
views
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 ...