Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh config help #25

Closed
dmcd opened this issue Aug 24, 2018 · 1 comment
Closed

ssh config help #25

dmcd opened this issue Aug 24, 2018 · 1 comment

Comments

@dmcd
Copy link

dmcd commented Aug 24, 2018

Is it possible to use this bastion as a forwarding agent when supplying a private key to the destination host? I can't seem to get the following to work?

Host bastion
  HostName <bastion-ip>
  Port 1234
  ForwardAgent   yes

Host 10.0.1.23
  IdentityFile ~/.ssh/key.pem
  ProxyCommand ssh dmcd@bastion -W %h:%p
@dmcd
Copy link
Author

dmcd commented Aug 27, 2018

I remembered that I need to ssh in one single command to use ForwardAgent correctly: i.e.

Host bastion
  HostName <bastion-ip>
  Port 1234
  User dmcd
  ForwardAgent   yes
  StrictHostKeyChecking no

and then:
ssh -t bastion ssh ec2-user@x.x.x.x

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

No branches or pull requests

1 participant