diff --git a/paramiko/ssh_exception.py b/paramiko/ssh_exception.py index 68924d0..3fe2739 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