paramiko API reference
72 public APIs from paramiko (paramiko/paramiko) — 29 classes, 2 functions, 41 methods. Signatures extracted by static analysis of the actual source.
Repository: paramiko/paramiko
| Kind | Count |
|---|---|
| Classes | 29 |
| Functions | 2 |
| Methods | 41 |
API list
method
paramiko.agent.Agent.close()Close the SSH agent connection.
class
paramiko.agent.AgentClientProxyClass proxying request as a client: #.
class
paramiko.agent.AgentKeyPrivate key held in a local SSH agent.
class
paramiko.agent.AgentProxyThreadClass in charge of communication between two channels.
class
paramiko.agent.AgentRemoteProxyClass to be used when wanting to ask a remote SSH Agent
class
paramiko.agent.AgentServerProxyAllows an SSH server to access a forwarded agent.
class
paramiko.auth_handler.AuthHandlerInternal class to handle the mechanics of authentication.
class
paramiko.auth_handler.AuthOnlyHandlerAuthHandler, and just auth, no service requests!
class
paramiko.auth_strategy.AuthResultRepresents a partial or complete SSH authentication attempt.
class
paramiko.auth_strategy.InMemoryPrivateKeyAn in-memory, decrypted `.PKey` object.
class
paramiko.auth_strategy.PasswordPassword authentication.
class
paramiko.auth_strategy.PrivateKeyEssentially a mixin for private keys.
class
paramiko.ber.BERRobey's tiny little attempt at a BER decoder.
class
paramiko.channel.ChannelA secure tunnel across an SSH `.Transport`.
method
paramiko.channel.Channel.close()Close the channel.
method
paramiko.channel.Channel.exec_command(command)Execute a command on the server.
method
paramiko.channel.Channel.get_id()Return the `int` ID # for this channel.
method
paramiko.channel.Channel.recv(nbytes)Receive data from the channel.
method
paramiko.channel.Channel.resize_pty(width=80, height=24, width_pixels=0, height_pixels=0)Resize the pseudo-terminal.
method
paramiko.channel.Channel.send(s)Send data to the channel.
method
paramiko.channel.Channel.set_name(name)Set a name for this channel.
class
paramiko.channel.ChannelFileA file-like wrapper around `.Channel`.
class
paramiko.channel.ChannelStderrFileA file-like wrapper around `.Channel` stderr.
class
paramiko.channel.ChannelStdinFileA file-like wrapper around `.Channel` stdin.
class
paramiko.client.RejectPolicyPolicy for automatically rejecting the unknown hostname & key.
class
paramiko.client.SSHClientA high-level representation of a session with an SSH server.
method
paramiko.client.SSHClient.get_host_keys()Get the local `.HostKeys` object.
method
paramiko.client.SSHClient.open_sftp()Open an SFTP session on the SSH server.
method
paramiko.client.SSHClient.save_host_keys(filename)Save the host keys back to a file.
method
paramiko.client.SSHClient.set_log_channel(name)Set the channel for logging.
class
paramiko.config.LazyFqdnReturns the host's fqdn on request as string.
class
paramiko.hostkeys.HostKeyEntryRepresentation of a line in an OpenSSH-style "known hosts" file.
class
paramiko.hostkeys.HostKeysRepresentation of an OpenSSH-style "known hosts" file.
method
paramiko.hostkeys.HostKeys.add(hostname, keytype, key)Add a host key entry to the table.
method
paramiko.message.Message.add(*seq)Add a sequence of items to the stream.
method
paramiko.message.Message.add_adaptive_int(n)Add an integer to the stream.
method
paramiko.message.Message.add_boolean(b)Add a boolean value to the stream.
method
paramiko.message.Message.add_int(n)Add an integer to the stream.
method
paramiko.message.Message.add_int64(n)Add a 64-bit int to the stream.
method
paramiko.message.Message.add_list(l)Add a list of strings to the stream.
method
paramiko.message.Message.add_string(s)Add a bytestring to the stream.
method
paramiko.message.Message.get_adaptive_int()Fetch an int from the stream.
method
paramiko.message.Message.get_binary()Alias for `get_string` (obtains a bytestring).
method
paramiko.message.Message.get_boolean()Fetch a boolean from the stream.
method
paramiko.message.Message.get_int()Fetch an int from the stream.
method
paramiko.message.Message.get_int64()Fetch a 64-bit int from the stream.
method
paramiko.message.Message.get_string()Fetch a "string" from the stream.
method
paramiko.message.Message.get_text()Fetch a Unicode string from the stream.
class
paramiko.packet.NeedRekeyExceptionException indicating a rekey is needed.
class
paramiko.packet.PacketizerImplementation of the base SSH packet protocol.
method
paramiko.packet.Packetizer.readline(timeout)Read a line from the socket.
class
paramiko.pkey.PKeyBase class for public keys.
class
paramiko.proxy.ProxyCommandWraps a subprocess running ProxyCommand-driven programs.
method
paramiko.rsakey.RSAKey.generate(bits, progress_func=None)Generate a new private RSA key.
class
paramiko.server.SubsystemHandlerHandler for a subsystem in server mode.
class
paramiko.sftp_client.SFTPAn alias for `.SFTPClient` for backwards compatibility.
class
paramiko.sftp_client.SFTPClientSFTP client object.
method
paramiko.sftp_client.SFTPClient.open(filename, mode='r', bufsize=-1)Open a file on the remote server.
method
paramiko.sftp_client.SFTPClient.remove(path)Remove the file at the given path.
method
paramiko.sftp_client.SFTPClient.rmdir(path)Remove the folder named ``path``.
method
paramiko.sftp_file.SFTPFile.close()Close the file.
method
paramiko.sftp_file.SFTPFile.seek(offset, whence=0)Set the file's current position.
method
paramiko.sftp_file.SFTPFile.truncate(size)Change the size of this file.
class
paramiko.sftp_server.SFTPServerServer-side SFTP subsystem support.
method
paramiko.transport.SecurityOptions.ciphers()Symmetric encryption ciphers
method
paramiko.transport.SecurityOptions.compression()Compression algorithms
method
paramiko.transport.SecurityOptions.digests()Digest (one-way hash) algorithms
method
paramiko.transport.SecurityOptions.kex()Key exchange algorithms
method
paramiko.transport.SecurityOptions.key_types()Public-key algorithms
method
paramiko.transport.Transport.use_compression(compress=True)Turn on/off compression.
func
paramiko.util.b(s, encoding='utf8')cast unicode or bytes to bytes
func
paramiko.util.u(s, encoding='utf8')cast bytes or unicode to unicode
About this data
These signatures were extracted from the public source of paramiko/paramiko
using Python's ast module. Argument names, default values,
type annotations and return types are taken verbatim from the code.
Implementation bodies are never stored. See
how it works for details.