GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Paramiko
  • Channel
  • Client
  • Message
  • Packetizer
  • Transport
  • Authentication modules
  • SSH agents
  • Host keys / known_hosts files
  • Key handling
  • Configuration
  • ProxyCommand support
  • Server implementation
  • SFTP

This view

  • Original page
  • New address

GeezerVison is showing docs.paramiko.org — ProxyCommand support — Paramiko documentation

ProxyCommand support¶

class paramiko.proxy.ProxyCommand(command_line)¶

Wraps a subprocess running ProxyCommand-driven programs.

This class implements a the socket-like interface needed by the Transport and Packetizer classes. Using this class instead of a regular socket makes it possible to talk with a Popen’d command that will proxy traffic between the client and a server hosted in another machine.

Instances of this class may be used as context managers.

__init__(command_line)¶

Create a new CommandProxy instance. The instance created by this class can be passed as an argument to the Transport class.

Parameters:

command_line (str) – the command that should be executed and used as the proxy.

recv(size)¶

Read from the standard output of the forked program.

Parameters:

size (int) – how many chars should be read

Returns:

the string of bytes read, which may be shorter than requested

send(content)¶

Write the content received from the SSH client to the standard input of the forked command.

Parameters:

content (str) – string to be sent to the forked command

©2026 Jeff Forcier. | Powered by Sphinx 7.2.6 & Alabaster 0.7.13 | Page source
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.