diff options
author | Christian Simon <simon@swine.de> | 2014-04-17 17:06:37 +0200 |
---|---|---|
committer | Christian Simon <simon@swine.de> | 2014-04-21 11:33:13 +0200 |
commit | 61e27e7b4cfa6d387d80c8c420a7816706f3ae4f (patch) | |
tree | 7591bfd20ab736e5bac3c8d7d37b0c7987028d08 | |
parent | 329485ab81f3b69697ac1723043369c37a99ea2f (diff) | |
download | net-ssh-61e27e7b4cfa6d387d80c8c420a7816706f3ae4f.tar.gz |
Ignore errors during ssh agent negotiation
* Support Apache's SSHD implementation of a SSH Agent
* Discovered while trying to use Jenkins' SSH Agent Plugin
-rw-r--r-- | lib/net/ssh/authentication/agent/socket.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/net/ssh/authentication/agent/socket.rb b/lib/net/ssh/authentication/agent/socket.rb index 0bb43a1..c80099e 100644 --- a/lib/net/ssh/authentication/agent/socket.rb +++ b/lib/net/ssh/authentication/agent/socket.rb @@ -77,6 +77,8 @@ module Net; module SSH; module Authentication if type == SSH2_AGENT_VERSION_RESPONSE raise AgentNotAvailable, "SSH2 agents are not yet supported" + elsif type == SSH2_AGENT_FAILURE + debug { "Unexpected response type==#{type}, this will be ignored" } elsif type != SSH_AGENT_RSA_IDENTITIES_ANSWER1 && type != SSH_AGENT_RSA_IDENTITIES_ANSWER2 raise AgentNotAvailable, "unknown response from agent: #{type}, #{body.to_s.inspect}" end |