Skip to content

Instantly share code, notes, and snippets.

@jhburns
Created September 11, 2019 17:55
Show Gist options
  • Save jhburns/4208820b396c2f9fa8c4f6c77bb4f59c to your computer and use it in GitHub Desktop.
Save jhburns/4208820b396c2f9fa8c4f6c77bb4f59c to your computer and use it in GitHub Desktop.

SSH Forwarding

The purpose of this guide is to show how to authenticate to GitHub while sshing into another computer.

Steps

  1. Follow this guide locally, verify that you can authenticate to GitHub normally.
  2. Add a file config to ~/.ssh/ and save the following content to it:
Host icd.chapman.edu
  ForwardAgent yes
  1. Connect to the intermediate machine, using ssh as you regularly would.
  2. Run ssh -T git@github.com to verify the connection is being forwarded.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment