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

tkinter GUI will not open when pysftp imported

I'm working on a Programm where the User can insert data via a tkinter GUI, than they are saved in a JSON and after this uploaded to a server via sftp. When i start the file in pycharm all worked as designed. But when i try it via doubleclick on…
DavidA
  • 1
  • 2
0
votes
0 answers

Issue with installing pysftp with pip

I am trying to install the module pysftp onto my Rapspberry Pi, but I get an error returned when sudo pip install pysftp is run. This is the error I get: Command "python setup.py egg_info" failed with error code 1 in…
Help2000
  • 1
  • 1
0
votes
0 answers

How to print long listing for files in a remote server using pysftp in Python2.7

I have a script which connects to remote server using pysftp and does all basic functions such as put,get and listing files in remote server(basic operation between remote and local machine). The script doesn't show me the long listing of files in a…
0
votes
1 answer

transferring files with pysftp.get_r between linux and windows

I want to recursively download files from a Linux server into a Windows desktop. I'm using the following code: import pysftp import sys cnopts = pysftp.CnOpts() cnopts.hostkeys = None with pysftp.Connection(host="192.168.1.1", username="user",…
LuizAngioletti
  • 296
  • 2
  • 11
0
votes
1 answer

pysftp gives pysftp.exceptions.ConnectionException: (host, port) with no details on it

I'm trying to connect to sftp server with pysftp library. Here is my code: import pysftp cnopts = pysftp.CnOpts() cnopts.hostkeys = None with pysftp.Connection("sftp://host", "login", "password", cnopts=cnopts) as sftp: sftp.listdir() It…
wasd
  • 1,532
  • 3
  • 28
  • 40
0
votes
2 answers

How to pass arguments for sftp.get in python

a = raw_input("Select your project: ") stdin, stdout, stderr = ssh.exec_command('cd test \n cd software \n cd {0} \n ls'.format(a)) softwares = stdout.readlines() I got output for this. But, when I am trying to get output for the below lines of…
Surya G
  • 25
  • 7
0
votes
1 answer

Setting up test connection to server using pysftp

I'am trying to establish a test connection to an sftp server. (as demonstrated in Python Pysftp Error). I got the key from the server by establishing a first connection to the server via terminal. That worked flawlessly. However if I run the python…
studere
  • 156
  • 8
0
votes
2 answers

How to get file location path from server but not copy it?

I have my NAS server located and i am able to get/upload files on it. Now i have suituation where i need to read .png files location from server and pass it on UI thread to show the image. Right now i am only aware of method get which needs local…
Pawankumar Dubey
  • 387
  • 1
  • 6
  • 21
0
votes
1 answer

Python - psql prompt for password even if it got it

I'm working on a small code, which have to: Connect with SFTP execute command on PostgreSQL (password protected) I am willing to use password as a plain text. For the moment my code is: import pysftp command = "... some SQL command" sftp=…
Koral
  • 80
  • 6
0
votes
1 answer

No Implemented Error - PySftp

I am trying to connect to a SFTP server through Pysftp module using the below code a = pysftp.Connection('xx.yyy.zz.abc',username='abcd',password='xyz@123',log=True) This throws the following error NotImplementedError …
0
votes
1 answer

Python PySFTP transfer files from one remote server to another remote server

I've been using pysftp to successfully transfer files from a remote server to a local server. Here's what the simple version of my code looks like: class SftpClass(object): def __init__(self): self.sftp = None def…
ProgrammingWithRandy
  • 725
  • 3
  • 14
  • 31
0
votes
0 answers

Python, Linux: How to execute multiple commands using pysftp

Here I am trying to execute commands on remote server and getting back its output, for every command, but it need a saperate connection, but if I create saperate connection or session, its responding me very slowly, The code that I am trying run is,…
Pankaj Jackson
  • 3,521
  • 3
  • 15
  • 19
0
votes
2 answers

Installation of pysftp via pip failed (because of 2 python2.x versions?)

My Ubuntu 10.04 came with Python 2.6. Now, I also installed Python 2.7, which is the system default now because when I start python from the terminal, it starts python 2.7. Now, I want to install the library pysftp using pip, but I'm having a hard…
Lewistrick
  • 2,649
  • 6
  • 31
  • 42
0
votes
2 answers

pysftp: how to get remote folder size

How to get size of a remote folder when using pysftp? The object return by stat seems doesn't looks right, my code: fdStat = sftpClient.stat(remotePath); print(fdStat.st_size); output: drwxr-xr-x 1 0 99 4096 21 Sep 11:13…
tiboo
  • 8,213
  • 6
  • 33
  • 43
0
votes
2 answers

Python SFTP (pysftp) hangs when sending 31kb of data

I am doing an upload to FTP server: chunks = math.ceil(size / BUFFER_SIZE) print('SFPTField: Uploading stream of length %s, chunks %d' % (size, chunks)) for i in range(chunks): print('SFTPField: Writing chunk %d...' % (i + 1)) …
Khanh Hua
  • 1,086
  • 1
  • 14
  • 22