Skip to content
This repository has been archived by the owner on Feb 27, 2022. It is now read-only.

Use SSH forwarding #5

Open
alberto56 opened this issue Feb 11, 2014 · 2 comments
Open

Use SSH forwarding #5

alberto56 opened this issue Feb 11, 2014 · 2 comments

Comments

@alberto56
Copy link
Owner

Allow SSH forwarding to allow the jenkins user to use the host machine's ssh credentials.

@alberto56
Copy link
Owner Author

The following have information about this, but I can't get it to work:

https://coderwall.com/p/p3bj2a
https://help.github.com/articles/using-ssh-agent-forwarding

I have enabled ssh forwarding on my mac and have added the forward agent and the private key location to my vagrant file, but I still get

ssh -T [email protected]
Hi alberto56! You've successfully authenticated, but GitHub does not provide shell access.
vagrant ssh
...
[vagrant@localhost ~]$ ssh -T [email protected]
Warning: Permanently added the RSA host key for IP address 'x.x.x.x' to the list of known hosts.
Permission denied (publickey).

@alberto56
Copy link
Owner Author

I got this to work with another machine by following the instructions at http://stackoverflow.com/questions/24681167

Specifically, this has to be added to .ssh/config:

Host                    *
    ForwardAgent          yes

Then make your key forwardable and add your guest machine

ssh-add ~/.ssh/id_rsa

I'll leave this open until someone can confirm that this approach works on this project.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant