1
vote
0answers
19 views

SSH: How could I know the concurrent limit?

In order to test SSH server, I created a test program (in python) on the client side. The test program will generate 100 processes, each process will make a SSH connection with the server. Any failed ...
-1
votes
0answers
22 views

Emulating Putty's behaviour in python

Can someone explain, please, how to implement ssh tunneling where local host serves as SOCKS proxy with python and give some source code examples? I've looked on paramiko demo files, however they ...
1
vote
1answer
23 views

Connect to SSH server through SOCKS and paramiko

I'm trying to connect to SSH server in the following way: import paramiko import socks sock = socks.socksocket() sock.setproxy(socks.PROXY_TYPE_SOCKS5, 'localhost', 22, True) sock.connect((**IP ...
0
votes
1answer
22 views

“execution_count” error when running a job on a remote IPython cluster

I am running an IPython cluster (SSH) on a remote Linux machine, and I am using Mac OS X with IPython to use that cluster. In IPython on Mac I write: from IPython.parallel import Client c = ...
0
votes
0answers
9 views

“paramiko.ChannelException: Administratively prohibited” encountered midway through a script

I'm using Python to SSH into a host, run bash commands, and then parse results in a Pythonic way into several data structures for later display. I'm using the Paramiko library for SSH and executing ...
2
votes
4answers
45 views

checking file size in a remote server using python, SSH

someone please help! im currently writting a python script to actually retrieve a file size that is in a local PC and a remote server. then, what i do is, i compare if the file's size are the same. ...
-1
votes
0answers
20 views

emulate ssh -d using python with paramiko

How can I implement the ssh -D option using paramiko or any other library? I find it just can transport as ssh -L do. The ruby version can see https://github.com/neo/net-ssh-socks
0
votes
1answer
12 views

Python ssh 1.8.0 library installation errors

I got compilation errors when trying to install Python SSH 1.8.0 library using Python 3.3 on Windows 7. I am surprised to get notification of Syntax Errors. ...
5
votes
2answers
871 views

Port forwarding with paramiko

I'm trying to do some port forwarding from a python app using paramiko. I can set up the SSH connection just fine, but I'm a bit stumped as to how to use paramiko.transport. I've already found this ...
-1
votes
1answer
41 views

How can I create a ssh tunnel using python like 'ssh -D'?

I have try to implement it using paramiko. But I find paramiko can only launch a tunnel redirecting localhost:lport to remoteip:rport just like 'ssh -L'. So I want to know how can I implement it ...
4
votes
2answers
235 views

Paramiko simulate ssh -t option

I instantiate a paramiko channel, then I execute a command and get its output: channel = transport.open_session() channel.exec_command('service myservice restart') stdout = channel.makefile('rb') ...
0
votes
0answers
26 views

running commands with ssh python and exscript package failed

I'm trying to execute some configuration commands on my switch with ssh connection and python development tools (exscript package), I found this function which run perfectly in my localhost but not in ...
0
votes
1answer
34 views

Running remote mysqldump over SSH all in python

Hi Im trying to write a Python script to SSH into a remote server and execute a mysqldump. My method so far was to establish portforwarding then run a backup script I already had written. I suspect ...
0
votes
0answers
25 views

Waiting until a Paramiko remote command has finished

I am trying to execute a remote command using Paramiko to do a yum install of rpm on a remote server. The way I originally had my SSH command, it returned immediately after executing the command and ...
0
votes
2answers
106 views

SSH Server status in Python

I wanted to know if there is a way to find out the status of the ssh server in the system using Python. I just want to know if the server is active or not (just yes/no). It would help even if it is ...

1 2 3 4 5 30
15 30 50 per page