My goal is to connect from a VirtualBox VM to another machine using the ssh key authentication. I have created the VM with Vagrant (1.0.5). I have also enabled config.ssh.forward_agent = true (as suggested in this post). Sadly, the ssh forwarding does not seem to be working.
These are the steps (on fresh ubuntu with vagrant and virtualbox):
Log from the host machine to VM (when I use --debug, I see that the forwarding is enabled)
vagrant ssh
Log from VM (ubuntu 12.04 with injected vagrant ssh key) to external machine
ssh -A sk@192.168.0.1
to get: Permission denied.
Do I need to perform any additional step to make it work? People advice to use ssh-add -K. It is not clear for me on which machine.