Comments (22)
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.
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.
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.
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.
This continues to be an issue for me. Does net-ssh give the ability to disable agent support?
from vagrant.
+1, having to shutdown pageant every time is quite a nuisance.
from vagrant.
+1, really annoying
from vagrant.
+1 please fix this, can't use vagrant anymore when using pageant
from vagrant.
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.
+1 Also experiencing this issue.
from vagrant.
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.
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.
I managed to fix this my simply closing pageant, thanks for pointing me in the right direction @jaraco.
from vagrant.
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.
The fix (from net-ssh/129) will be included in the 2.8.0 release later today.
from vagrant.
@delano oh my god amazing. <3 <3 <3
from vagrant.
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.
Yeah, my first fix and I do not even speak Ruby :)
from vagrant.
@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.
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.
@delano Thanks, I'll wait for a 2.8.1
from vagrant.
+1
Ok i wait, too :/
from vagrant.
Related Issues (20)
- `vagrant plugin install` not working on latest vagrant 2.3.7 HOT 1
- Hyper-v from windows 10 works great with virtualbox and vmware, wrong documentation. HOT 2
- Cannot run recent versions of Node.js in Vagrant boxes HOT 4
- reboot not working with el9 guest
- Docker provider: Add support for repeated scoped options
- Error on host key detection on some boxes
- Unable to use box centos/stream9 HOT 1
- Digest initialization failed: initialization error on MacOS host with Windows guest HOT 6
- Vagrant 2.4.0 is not using the most recently published box HOT 3
- Vagrant up fails with VMware provider
- provider_config disk options are ignored for Hyper-V
- stealing code HOT 1
- Vagrantfile's provisioners dependency is working with 2.3.7 but not with 2.4.0
- `vagrant ssh` does not work on Git Bash/MSYS2 environments after 2.4.0 update HOT 3
- 'box update' with custom catalog fails to see updates HOT 1
- windows11 安装 vagrant 完成后,报错 HOT 1
- Can't boot virtual machines via vagrant but works well with virtualbox GUI(vagrant 2.4.0/virtualbox 7.0.12)
- APT repository does not include packages for Ubuntu 23.10 "Mantic Minotaur"
- Unable to resize SATA Disk with vmware_desktop Provider
- hostname does not get set correctly, seperated by dot
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant.