ubuntu:ssh:agent_forwarding
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:ssh:agent_forwarding [2025/05/21 10:05] – peter | ubuntu:ssh:agent_forwarding [2025/05/21 10:11] (current) – peter | ||
---|---|---|---|
Line 77: | Line 77: | ||
**WARNING: | **WARNING: | ||
</ | </ | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | If SSH Forwarding is not working, | ||
+ | |||
+ | * Make sure you actually have SSH keys in the first place; if you do not, run **ssh-keygen**, | ||
+ | * Verify that the SSH keys are working properly with regular auth, and add them to ssh-agent. Keys can be added with **ssh-add**. | ||
+ | * The ssh-agent process also needs to be running. It should start automatically, | ||
+ | echo " | ||
+ | </ | ||
+ | |||
+ | * If it is correctly set up, this should display a Listeners socket returned. | ||
+ | * Make sure the config files are set up properly to include **ForwardAgent yes**, and make sure no other config files are overwriting this behaviour. | ||
+ | * To check which config files SSH is using, run ssh in verbose mode, Which should display which config files are being used. Files displayed later in this list take precedence over earlier files: <code bash> | ||
+ | ssh -v user@host</ | ||
+ | |||
+ | |||
+ | ---- | ||
+ | |||
+ | TAGS | ||
+ | |||
+ | * TAG: Networking | ||
+ | * TAG: Security | ||
+ | * TAG: SSH | ||
---- | ---- | ||
ubuntu/ssh/agent_forwarding.1747821955.txt.gz · Last modified: 2025/05/21 10:05 by peter