Jump to >

reviewboard.ssh.errors

exception SSHError[source]

Bases: exceptions.Exception

An SSH-related error.

exception MakeSSHDirError(dirname)[source]

Bases: exceptions.IOError, reviewboard.ssh.errors.SSHError

__init__(dirname)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

exception SSHAuthenticationError(allowed_types=[], msg=None, user_key=None)[source]

Bases: reviewboard.ssh.errors.SSHError

An error representing a failed authentication over SSH.

This takes a list of SSH authentication types that are allowed. Primarily, we respond to “password” and “publickey”.

This may also take the user’s SSH key that was tried, if any.

__init__(allowed_types=[], msg=None, user_key=None)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

exception UnsupportedSSHKeyError[source]

Bases: reviewboard.ssh.errors.SSHError

An error representing an unsupported type of SSH key.

__init__()[source]

x.__init__(…) initializes x; see help(type(x)) for signature

exception SSHKeyError(hostname, key, message)[source]

Bases: reviewboard.ssh.errors.SSHError

An error involving a host key on an SSH connection.

__init__(hostname, key, message)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

exception BadHostKeyError(hostname, key, expected_key)[source]

Bases: reviewboard.ssh.errors.SSHKeyError

An error representing a bad or malicious key for an SSH connection.

__init__(hostname, key, expected_key)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

exception UnknownHostKeyError(hostname, key)[source]

Bases: reviewboard.ssh.errors.SSHKeyError

An error representing an unknown host key for an SSH connection.

__init__(hostname, key)[source]

x.__init__(…) initializes x; see help(type(x)) for signature

exception SSHInvalidPortError(port)[source]

Bases: reviewboard.ssh.errors.SSHError

An error representing a port that is a non-integer value.

__init__(port)[source]

x.__init__(…) initializes x; see help(type(x)) for signature