GithubHelp home page GithubHelp logo

Comments (22)

jaraco avatar jaraco commented on August 27, 2024

Also, please let me know if you have any recommendations for working around the issue. I'm going to downgrade to Vagrant 1.0.x in the meantime.

from vagrant.

jaraco avatar jaraco commented on August 27, 2024

I should mention that the issue may not be related to the word size, but could be related to UAC (communicating with the PAgeant requires special handling when the PAgeant and the requesting process are in different administrative contexts).

Indeed, I just confirmed that the error doesn't occur if I run 'vagrant up' in a non-elevated context (same as what PAgeant runs). Therefore, the issue appears to have the same cause as Paramiko Issue #98, the resolution of which required extensive use of the underlying Windows APIs to address the issue properly (as PuTTY implements it).

from vagrant.

mitchellh avatar mitchellh commented on August 27, 2024

Could you report a bug upstream in net-ssh? https://github.com/net-ssh/net-ssh/issues?state=open

This is where the bug is and it'd be best serviced there. Thanks!

from vagrant.

jaraco avatar jaraco commented on August 27, 2024

I've reported the issue upstream, but the issue still remains in Vagrant. I find that I can work around the issue by stopping my agent process, but that's far from ideal. Perhaps there's something Vagrant can do to work around the issue until it's resolved in net-ssh? For example, since Vagrant already has the key, it doesn't really need to use the agent at all. Perhaps Vagrant could disable agent support, at least for the management processes so it runs like it did in 1.0?

from vagrant.

jaraco avatar jaraco commented on August 27, 2024

This continues to be an issue for me. Does net-ssh give the ability to disable agent support?

from vagrant.

zodeus avatar zodeus commented on August 27, 2024

+1, having to shutdown pageant every time is quite a nuisance.

from vagrant.

aljinovic avatar aljinovic commented on August 27, 2024

+1, really annoying

from vagrant.

tschellenbach avatar tschellenbach commented on August 27, 2024

+1 please fix this, can't use vagrant anymore when using pageant

from vagrant.

tschellenbach avatar tschellenbach commented on August 27, 2024

the only workable solution i found so far is to use vagrant with osx or ubuntu instead of windows.
a few people in my team are on windows though and this is making vagrant quite unworkable.
are there any known workarounds?

from vagrant.

nathanlenz avatar nathanlenz commented on August 27, 2024

+1 Also experiencing this issue.

from vagrant.

jaraco avatar jaraco commented on August 27, 2024

What I do is (from powershell) "kill -name pageant" and I also have an alias to start-pageant with the same parameters that it starts up normally. Then I invoke those before and after running vagrant. I guess one could wrap the vagrant in an alias that does all of that automatically.

from vagrant.

mitchellh avatar mitchellh commented on August 27, 2024

I'm sorry but if there is a way Vagrant can work around this, I'd be happy to put that in. At the moment, it doesn't sound like there is one. This seems to happen even if Vagrant explicitly tells net-ssh to NOT even care about agents.

from vagrant.

crisu83 avatar crisu83 commented on August 27, 2024

I managed to fix this my simply closing pageant, thanks for pointing me in the right direction @jaraco.

from vagrant.

ecki avatar ecki commented on August 27, 2024

When I change net-ssh-2.6.8/lib/net/ssh/authenticatiob/agent/socket.rb to raise "AgentNotAvailable" in all error cases (line 79, 81) then KeyManager will happily ignore the failing/incompatible/inaccessible agent.

I sent an upstream pull request, but it might need some different startegy to make it generic: net-ssh/net-ssh#129

from vagrant.

delano avatar delano commented on August 27, 2024

The fix (from net-ssh/129) will be included in the 2.8.0 release later today.

from vagrant.

mitchellh avatar mitchellh commented on August 27, 2024

@delano oh my god amazing. <3 <3 <3

from vagrant.

delano avatar delano commented on August 27, 2024

This is now a thing that happened:
http://rubygems.org/gems/net-ssh/versions/2.8.0

FYI, there were a lot of fixes and additions in this release so if you find any new issues let me know.

from vagrant.

ecki avatar ecki commented on August 27, 2024

Yeah, my first fix and I do not even speak Ruby :)

from vagrant.

dopry avatar dopry commented on August 27, 2024

@mitchellh any chance you've gotten around to testing a 1.4.4 with net-ssh bumped to <= 2.8.0? I tried locally on my windows, but many of the tests are failing. Any special tricks to running tests on windows?

from vagrant.

delano avatar delano commented on August 27, 2024

Just as an FYI, there is an issue with password auth in 2.8.0 that affects some configurations. I recommend waiting for that to be resolved before bumping the net-ssh version for vagrant.

See net-ssh/#145 for more info.

from vagrant.

mitchellh avatar mitchellh commented on August 27, 2024

@delano Thanks, I'll wait for a 2.8.1

from vagrant.

Bup3 avatar Bup3 commented on August 27, 2024

+1

Ok i wait, too :/

from vagrant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.