Giter Site home page Giter Site logo

Comments (7)

mconigliaro avatar mconigliaro commented on June 1, 2024 1

For future Googlers, the following ~/.ssh/config is apparently enough to make this work:

Host 127.0.0.1
  ForwardAgent yes

from kitchen-vagrant.

mconigliaro avatar mconigliaro commented on June 1, 2024

Wait, this seems to be working for me anyway. Is it just enabled by default?

from kitchen-vagrant.

pghalliday avatar pghalliday commented on June 1, 2024

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.

fnichol avatar fnichol commented on June 1, 2024

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.

fnichol avatar fnichol commented on June 1, 2024

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.

pghalliday avatar pghalliday commented on June 1, 2024

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.

fnichol avatar fnichol commented on June 1, 2024

@pghalliday Ha, you're totally right about Vagrant, excellent point

from kitchen-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.