paramiko Questions
2
Solved
I'm using paramiko to connect to an SFTP server on which I have to download and process some files.
The server has a timeout set to 5 minutes, but some days it happens that the processing of the f...
3
Solved
I am running a remote command with:
ssh = paramiko.SSHClient()
ssh.connect(host)
stdin, stdout, stderr = ssh.exec_command(cmd)
Now I want to get the output. I have seen things like this:
# Wait...
4
I need to write a string to a file on a remote host using python's paramiko module. I've been trialing various methods of redirecting input but with no success.
The localstring in the below code s...
2
The following code:
t = paramiko.Transport((hostname, port))
t.connect(username=username, password=password)
sftp = t.open_sftp_client()
Raises this exception:
Traceback (most recent call la...
8
Solved
I want to upload a file on a remote server with Python. I'd like to check beforehand if the remote path is really existing, and if it isn't, to create it. In pseudocode:
if(remote_path not exist):...
7
Solved
I'm creating a AWS Lambda function when I need to read an info on an API, create a CSV file, and upload them on a SFTP server.
I've installed paramiko on my venv, using Ubuntu on Windows, and the ...
Declaratory asked 24/7, 2019 at 18:41
5
I am in need of python sftp client to download files from a sftp server. I started to use Paramiko. Small files in KB works well but however when I try to download 600 MB of file, it hangs indefini...
Sheriesherif asked 26/8, 2017 at 3:5
2
I have noticed that I can't get the same transfer speed when performing a get or put with paramiko's sftp.
Across our gigabit network from our mac mini server (running Mac os 10.12.6) a file tran...
3
I need to connect to a server with SSH to download files. I have Ubuntu and I've set up SSH in the standard way: I have a ssh_config file in .ssh which defines a host entry (say host_key) for the s...
2
I am trying to copy big files (~650mb) files using paramiko sftp. I am able to copy small files, but I see the following error when I try to copy big files. I am able to copy the file by using sftp...
Sy asked 21/2, 2013 at 19:22
5
Solved
I am writing some functions, using paramiko, to execute commands and create files on a remote host. I would like to write some unit tests for them, but I don't know what would be the simplest way t...
Weasel asked 28/8, 2017 at 11:13
5
I am trying to execute a sudo command on a remote machine using python-paramiko.
I tried this code:
import paramiko
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy...
2
Solved
I am trying to use Paramiko to make an SSH communication between 2 servers on a private network. The client server is a web server and the host server is going to be a "worker" server. Th...
5
Solved
I installed python 3.4 on windows 7 and when trying to use paramiko I get this error :
import paramiko
File "C:\Python34\lib\site-packages\paramiko-2.0.2-py3.4.egg\paramiko\__init__.py", line 30,...
4
Solved
trying to download some files from windows server using sftp in paramiko. get method is:
def get(self, remotepath, localpath = None):
"""Copies a file between the remote host and the local host."...
11
Solved
I am having a problem connecting to a device with a Paramiko (version 1.7.6-2) ssh client:
$ python
Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
[GCC 4.4.3] on linux2
Type "help", "copyright"...
3
Solved
I want to write a program (in Python 3.x on Windows 7) that executes multiple commands on a remote shell via ssh. After looking at paramikos' exec_command() function, I realized it's not suitable f...
Chelseachelsey asked 5/3, 2016 at 23:26
6
Solved
I have a Python 3 application running on CentOS Linux 7.7 executing SSH commands against remote hosts. It works properly but today I encountered an odd error executing a command against a "new...
3
Solved
I'm debugging some code, which is going to result in me constantly logging in / out of some external sftp servers. Does anyone know if paramiko automatically closes a ssh / sftp session on the exte...
3
Solved
How to do os.walk() but on another computer through SSH? The problem is that os.walk() executes on a local machine and I want to ssh to another host, walk through a directory and generate MD5 hashe...
3
I intend to run several commands on remote host using paramiko, but the ssh session closed after running a command.
The code listed below:
from paramiko import SSHClient
import paramiko
ssh = S...
Palindrome asked 8/4, 2016 at 3:26
4
I've got the following code:
import paramiko
policy = paramiko.client.WarningPolicy()
client = paramiko.client.SSHClient()
client.set_missing_host_key_policy(policy)
username = '...'
password = '....
14
Solved
How do you use Paramiko to transfer complete directories?
I'm trying to use:
sftp.put("/Folder1","/Folder2")
which is giving me this error -
Error : [Errno 21] Is a directory
...
4
Solved
Is there a way to check if a paramiko SSH connection is still alive?
In [1]: import paramiko
In [2]: ssh = paramiko.SSHClient()
In [3]: ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())...
6
Solved
I am trying connect to server using following spinet
ssh = paramiko.SSHClient()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ip = ['x.x.x.x']
key_file = "/Users/user/.ssh/id_rsa"
ke...
1 Next >
© 2022 - 2025 — McMap. All rights reserved.