diff options
author | delano <delano@delanotes.com> | 2014-04-30 13:26:34 -0400 |
---|---|---|
committer | delano <delano@delanotes.com> | 2014-04-30 13:26:34 -0400 |
commit | 135385458903441bde44db6653d4295e015cfd17 (patch) | |
tree | a2d044f293c98bcdf1a68ba650e8cc8101edd576 | |
parent | 2d9a19efcb26c52110041b6ec76a2078d047f050 (diff) | |
parent | 61e27e7b4cfa6d387d80c8c420a7816706f3ae4f (diff) | |
download | net-ssh-simonswine-feature_jenkins_ssh_agent.tar.gz |
Merge branch 'feature_jenkins_ssh_agent' of github.com:simonswine/net-ssh into simonswine-feature_jenkins_ssh_agentsimonswine-feature_jenkins_ssh_agent
-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 |