diff options
author | Delano Mandelbaum <delano@delanotes.com> | 2014-04-30 13:26:59 -0400 |
---|---|---|
committer | Delano Mandelbaum <delano@delanotes.com> | 2014-04-30 13:26:59 -0400 |
commit | 7286f815fc367d97771e8bec9f61aa023fff9989 (patch) | |
tree | a2d044f293c98bcdf1a68ba650e8cc8101edd576 | |
parent | 2d9a19efcb26c52110041b6ec76a2078d047f050 (diff) | |
parent | 61e27e7b4cfa6d387d80c8c420a7816706f3ae4f (diff) | |
download | net-ssh-7286f815fc367d97771e8bec9f61aa023fff9989.tar.gz |
Merge pull request #161 from simonswine/feature_jenkins_ssh_agent
Ignore errors during ssh agent negotiation
-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 |