Questions tagged [pysftp]

pysftp is a thin wrapper over paramiko's SFTPClient.

pysftp is a thin wrapper over 's SFTPClient.

372 questions
0
votes
1 answer

pyftp put is truncating the file to 4096 bits

I'm writing a python script that uploads a cvs file to a remote host via sftp (using pysftp). Everything appears to be working fine, but the uploaded file is always truncated to 4096 bytes. If I upload the file from the os (linux) using sftp,…
0
votes
2 answers

Writing path for sftp server python

I am using pysftp on Python and am trying to run a loop for a certain directory in the sftp server. I don't know how to write the directory paths on sftp servers. I thought that connecting to the server and just writing the directory as below would…
rokman54
  • 161
  • 1
  • 3
  • 15
0
votes
3 answers

How to encrypt password in Python pysftp?

I am using a Python script with the pysftp module to connect to SFTP server. Apparently I can pass a SFTP password explicitly which I don't like. My question: How could I replace the password for an encrypted one to avoid someone from being…
susja
  • 311
  • 3
  • 12
  • 33
0
votes
1 answer

Converting mtime To Days In Python

I have a file on a remote server, and I'm using pysftp to connect to the server. I'm trying to get how old the file is on the server and I can't seem to find a function to get the AGE in DAYS for the file using pysftp or Paramiko. (If I'm wrong, do…
Jake Z
  • 1,113
  • 1
  • 12
  • 22
0
votes
0 answers

Dynamically Export URL Document To Server Using Python

I'm writing a script in python and I'm trying to wrap my head around a problem. I've a URL that when opened, downloads a document. I'm trying to write a python script that opens the https URL that downloads this document, and automatically send that…
Jake Z
  • 1,113
  • 1
  • 12
  • 22
-1
votes
1 answer

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 available on the server, lots of data, but it only…
abolotnov
  • 4,282
  • 9
  • 56
  • 88
-1
votes
1 answer

How to transfer data from Google Cloud Storage to SFTP using Python without writing to the file system

I wrote a program using pysftp to download the file from Google Cloud Storage blob, and then upload the file from the file system. I wondered if I could bypass the file system and upload the stream to SFTP. I am using Google Cloud Functions to run…
Titu
  • 176
  • 7
-1
votes
1 answer

pysftp giving AuthenticationException

I am trying to develop azure function in python where I have to upload some files on SFTP server. I have got following code for the same. logging.info('Uploading file to mysguard sftp server') # Get the variables from vault user_name =…
Vijay
  • 35
  • 2
  • 7
-1
votes
1 answer

paramiko rekeying causes EOFError()

After Rekeying, _read_all receives string of len(0) and closes connection. What can i do to solve this. Please find the debug log and stack trace below. DEB [20211007-15:13:46.331] thr=2 paramiko.transport.sftp: [chan 0] open(b'v1_full_25127.zip',…
zza
  • 75
  • 3
  • 9
-1
votes
1 answer

How do I read a CSV from Secure FTP Server

I have a script which get .csv file and some data correction and save my django database. In my case I couldn't get .csv file from FTP server. I tried following codes but I faced different errors each time. import pandas as pd import pysftp as…
-1
votes
1 answer

pysftp read csv file has an etra quote

I am trying to read a csv file into an array however when I read it I get this extra quote instead of a row of values. with pysftp.Connection(host, username=username, password=pwd) as sftp: with sftp.cd('/DailyFiles'): files…
Cyzanfar
  • 6,997
  • 9
  • 43
  • 81
-1
votes
1 answer

Python code to move a directory from one server to another server using paramiko?

I am writing a python program in which i want to move a directory and its file to another server my code is as below import paramiko client =…
-1
votes
1 answer

Remote SFTP is not being generated

I can do sftp server.com <<< """put bar.txt bar.txt""" using my config in ~/.shh/config, and I try to incorporate the same into my Snakefile. Following the docs, I manage to connect, but not transfer the file: from snakemake.remote.SFTP import…
enryh
  • 83
  • 1
  • 10
-1
votes
1 answer

connecting to an SFTP server via python

I've been stack for a few days now. I'm wondering if anyone can help me with any suggestions on how to connect to the sFTP server below. The python code I've tried is as follows: import pysftp with pysftp.Connection(host…
-1
votes
2 answers

module 'pysftp' has no attribute 'Connection' in python 3.6

I would like to send a file through sftp with python3.6.5. I'm trying with pysftp package which seems to be a reference. The doc says that latest version 0.2.9 (released in 2016) was checked for Python 3.4, not above (quite logic for that time). I…
J.Delannoy
  • 345
  • 5
  • 15
1 2 3
24
25