diff options
author | Bernd <bernd@eckenfels.net> | 2013-11-20 18:19:03 +0100 |
---|---|---|
committer | Bernd <bernd@eckenfels.net> | 2013-11-20 18:19:03 +0100 |
commit | d158b80821365a8132f857805367562f3d009b99 (patch) | |
tree | ed8eb853dcbc12b4ca305c6125e6db3ec388f1a6 | |
parent | 448e2c043667ea15eb2a4ae1ab5b43bd19a47123 (diff) | |
download | net-ssh-d158b80821365a8132f857805367562f3d009b99.tar.gz |
allow KeyManager to recover from incompatible agents.
This is for example a problem with Vagrant on Windows: https://github.com/mitchellh/vagrant/issues/1455
-rw-r--r-- | lib/net/ssh/authentication/agent/socket.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/net/ssh/authentication/agent/socket.rb b/lib/net/ssh/authentication/agent/socket.rb index 78b6382..485350a 100644 --- a/lib/net/ssh/authentication/agent/socket.rb +++ b/lib/net/ssh/authentication/agent/socket.rb @@ -76,9 +76,9 @@ module Net; module SSH; module Authentication type, body = send_and_wait(SSH2_AGENT_REQUEST_VERSION, :string, Transport::ServerVersion::PROTO_VERSION) if type == SSH2_AGENT_VERSION_RESPONSE - raise NotImplementedError, "SSH2 agents are not yet supported" + raise AgentNotAvailable, "SSH2 agents are not yet supported" elsif type != SSH_AGENT_RSA_IDENTITIES_ANSWER1 && type != SSH_AGENT_RSA_IDENTITIES_ANSWER2 - raise AgentError, "unknown response from agent: #{type}, #{body.to_s.inspect}" + raise AgentNotAvailable, "unknown response from agent: #{type}, #{body.to_s.inspect}" end end |