Comments (7)
For future Googlers, the following ~/.ssh/config
is apparently enough to make this work:
Host 127.0.0.1
ForwardAgent yes
from kitchen-vagrant.
Wait, this seems to be working for me anyway. Is it just enabled by default?
from kitchen-vagrant.
I don't think the workaround really fixes the underlying issue. The problem i have with that is that it's global and as such could hide problems in cookbooks where I do not want agent forwarding enabled (eg. if i'm creating keys on the machine). I still think there needs to be a way to specify whether to use agent forwarding on a case by case basis
from kitchen-vagrant.
Currently SSH agent forwarding isn't directly supported, however you can supply your own custom Vagrant.erb template where you can enable agent forwarding or anything else for that matter. The driver uses a default Vagrantfile.erb which you could look to for ideas (although it's a bit crazy already to support everything existing).
from kitchen-vagrant.
Whoops, forgot that this may be supported in Test Kitchen proper as of test-kitchen/test-kitchen@81e6112. If you set:
---
driver:
name: vagrant
forward_agent: true
then this should enable the feature when communicating with a Vagrant instance.
from kitchen-vagrant.
I did try forking and adding the forward agent as a parameter in the driver but then i realised that test kitchen doesn't use the vagrant provision or ssh interfaces to talk to the box - so it turned out to be pointless adding the option to the vagrantfile. I should then have looked at test kitchen itself i guess :)
thanks for the pointer!
from kitchen-vagrant.
@pghalliday Ha, you're totally right about Vagrant, excellent point
from kitchen-vagrant.
Related Issues (20)
- hyper-v error HOT 3
- kitchen converage error HOT 1
- Kitchen converge fails on Windows 10 syncing initial cookbooks HOT 1
- <VagrantPlugins::RDP::Config:0x00000001039ce8f8> (NoMethodError) HOT 4
- Specifying custom SSH port does not work HOT 1
- Provide a way to change the main disk's size HOT 1
- SMB File Shares are hanging HOT 1
- kitchen create error(s) - hyper-v win server 2016 guest HOT 2
- Add qemuargs to libvirt section HOT 2
- Windows WSL with Hyper-V fails HOT 1
- box_auto_prune: true - do not cause an error when an older box is still actively in use on the machine, just wait until the next run to try again HOT 1
- box_auto_update -- produces an error when no box exists already to check for an update against HOT 2
- Consider always warning when a new box is available
- kitchen adds carriage return to shebang on bootstrap.sh when converging effortless package HOT 1
- SSH Config not sufficient in WSL2 HOT 4
- Unable to configure network with Vagrant/VirtualBox HOT 7
- Unable to configure network with Vagrant/VirtualBox HOT 3
- `network': wrong number of arguments (given 2, expected 1) (ArgumentError) HOT 1
- RSA key no longer accepted by OpenSSH 8.8+ HOT 1
- AWS credentials not passing through to Vagrant box HOT 1
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 kitchen-vagrant.