User Tools

Site Tools


ubuntu:ssh:agent_forwarding

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ubuntu:ssh:agent_forwarding [2025/05/21 10:05] peterubuntu:ssh:agent_forwarding [2025/05/21 10:11] (current) peter
Line 77: Line 77:
 **WARNING:**  There may also be a SSH config files at **/etc/ssh_config**, which may override the user config file at **~/.ssh/config**, so make sure nothing is conflicting. **WARNING:**  There may also be a SSH config files at **/etc/ssh_config**, which may override the user config file at **~/.ssh/config**, so make sure nothing is conflicting.
 </WRAP> </WRAP>
 +
 +----
 +
 +===== 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**, which will place the private key in **~/.ssh/id_rsa** and the public key in **~/.ssh/id_rsa.pub**.
 +  * 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, but verify that it is running with: <code bash>
 +echo "$SSH_AUTH_SOCK"
 +</code>
 +
 +  * 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</code>
 +
 +
 +----
 +
 +TAGS
 +
 +  * TAG:  Networking
 +  * TAG:  Security
 +  * TAG:  SSH
  
 ---- ----
  
  
ubuntu/ssh/agent_forwarding.1747821955.txt.gz · Last modified: 2025/05/21 10:05 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki