Welcome to Paramiko’s documentation!¶
This site covers Paramiko’s usage & API documentation. For basic info on what Paramiko is, including its public changelog & how the project is maintained, please see the main project website.
API documentation¶
The high-level client API starts with creation of an SSHClient
object. For
more direct control, pass a socket (or socket-like object) to a Transport
,
and use start_server
or start_client
to negotiate with the remote host as either a server
or client.
As a client, you are responsible for authenticating using a password or private key, and checking the server’s host key. (Key signature and verification is done by paramiko, but you will need to provide private keys and check that the content of a public key matches what you expected to see.)
As a server, you are responsible for deciding which users, passwords, and keys to allow, and what kind of channels to allow.
Once you have finished, either side may request flow-controlled channels
to the other side, which are Python objects that act like sockets,
but send and receive data over the encrypted session.
For details, please see the following tables of contents (which are organized by area of interest.)
Core SSH protocol classes¶
Authentication & keys¶
- SSH agents
Agent
AgentClientProxy
AgentKey
AgentKey.asbytes()
AgentKey.can_sign()
AgentKey.from_private_key()
AgentKey.from_private_key_file()
AgentKey.get_base64()
AgentKey.get_bits()
AgentKey.get_fingerprint()
AgentKey.get_name()
AgentKey.load_certificate()
AgentKey.sign_ssh_data()
AgentKey.verify_ssh_sig()
AgentKey.write_private_key()
AgentKey.write_private_key_file()
AgentLocalProxy
AgentLocalProxy.daemon
AgentLocalProxy.getName()
AgentLocalProxy.get_connection()
AgentLocalProxy.ident
AgentLocalProxy.isDaemon()
AgentLocalProxy.is_alive()
AgentLocalProxy.join()
AgentLocalProxy.name
AgentLocalProxy.native_id
AgentLocalProxy.run()
AgentLocalProxy.setDaemon()
AgentLocalProxy.setName()
AgentLocalProxy.start()
AgentProxyThread
AgentProxyThread.daemon
AgentProxyThread.getName()
AgentProxyThread.ident
AgentProxyThread.isDaemon()
AgentProxyThread.is_alive()
AgentProxyThread.join()
AgentProxyThread.name
AgentProxyThread.native_id
AgentProxyThread.run()
AgentProxyThread.setDaemon()
AgentProxyThread.setName()
AgentProxyThread.start()
AgentRemoteProxy
AgentRemoteProxy.daemon
AgentRemoteProxy.getName()
AgentRemoteProxy.ident
AgentRemoteProxy.isDaemon()
AgentRemoteProxy.is_alive()
AgentRemoteProxy.join()
AgentRemoteProxy.name
AgentRemoteProxy.native_id
AgentRemoteProxy.run()
AgentRemoteProxy.setDaemon()
AgentRemoteProxy.setName()
AgentRemoteProxy.start()
AgentRequestHandler
AgentServerProxy
get_agent_connection()
- Host keys /
known_hosts
files - Key handling
- GSS-API authentication
- GSS-API key exchange
Other primary functions¶
- Configuration
ProxyCommand
support- Server implementation
- SFTP
SFTPFile
SFTPFile.check()
SFTPFile.chmod()
SFTPFile.chown()
SFTPFile.close()
SFTPFile.flush()
SFTPFile.gettimeout()
SFTPFile.prefetch()
SFTPFile.read()
SFTPFile.readable()
SFTPFile.readinto()
SFTPFile.readline()
SFTPFile.readlines()
SFTPFile.readv()
SFTPFile.seek()
SFTPFile.seekable()
SFTPFile.set_pipelined()
SFTPFile.setblocking()
SFTPFile.settimeout()
SFTPFile.stat()
SFTPFile.tell()
SFTPFile.truncate()
SFTPFile.utime()
SFTPFile.writable()
SFTPFile.write()
SFTPFile.writelines()
SFTPFile.xreadlines()