diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2012-11-05 17:29:23 -0800 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2012-11-05 17:29:23 -0800 |
commit | 5d15467ad4f14b13e2d68f8f3b0c8d33dde4afeb (patch) | |
tree | 59eccd7304ecf12fcd24cb0f834dc33e88d145d7 | |
parent | 27271fa455228f14b1e16b576f0c8c40f532c227 (diff) |
Import BadProxyCommand
-rw-r--r-- | paramiko/ssh_exception.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py index 68924d0f..3fe27398 100644 --- a/paramiko/ssh_exception.py +++ b/paramiko/ssh_exception.py @@ -113,3 +113,18 @@ class BadHostKeyException (SSHException): self.key = got_key self.expected_key = expected_key + +class BadProxyCommand (SSHException): + """ + The "ProxyCommand" found in the .ssh/config file returned an error. + + @ivar command: The command line that is generating this exception + @type command: str + @ivar error: The error captured from the proxy command output + @type error: str + """ + def __init__(self, command, error): + SSHException.__init__(self, + '"ProxyCommand (%s)" returned non-zero exit status: %s' % ( + command, error)) + self.error = error |