Merge pull request #79 from Wheest/master

Agent Forwarding
This commit is contained in:
drduh 2018-12-05 17:10:07 +00:00 committed by GitHub
commit a68fa27309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 19 additions and 0 deletions

View File

@ -1457,6 +1457,25 @@ StreamLocalBindUnlink yes
**Note**: you can chain the agent forwarding through multiple hosts, you just have to follow the same [protocol](#remote-host-configuration) to configure each host.
# Remote Machines (agent forwarding)
If you want to use your Yubikey to sign a git commit on a remote machine, or ssh through another layer, then this is possible using "Agent Forwarding". Assuming that you have your Yubikey setup on your host machine.
To forward your agent, ssh using the `-a` flag
```
ssh -A user@remote
```
Or add the following to your ssh config file:
```
Host remote
ForwardAgent yes
```
You should then be able to use your Yubikey as if it were connected to the remote machine.
# Troubleshooting
- If you don't understand some option - read `man gpg`.