Skip to content

Instantly share code, notes, and snippets.

@VildMedPap
Created May 6, 2021 20:31
Show Gist options
  • Save VildMedPap/a16042d25a0f268104e448890a411766 to your computer and use it in GitHub Desktop.
Save VildMedPap/a16042d25a0f268104e448890a411766 to your computer and use it in GitHub Desktop.
SSH Config file
Host your_short_name
User name_of_user
HostName xx.xx.xx.xx
IdentityFile ~/.ssh/name_of_your_private_ssh_key
LocalForward xxxx 127.0.0.1:xxxx
@VildMedPap
Copy link
Author

You can use your local ssh key on the server.

Just run the command:

ssh-add ~/.ssh/id_rsa

And add ForwardAgent yes to the configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment