Skip to content

Commit 8a5b6c3

Browse files
committed
Merge branch 'mikemaccana-patch-1'
2 parents 12e96ce + 8ec9d5c commit 8a5b6c3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

content/guides/using-ssh-agent-forwarding.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,16 @@ $ ssh -T [email protected]
6868

6969
Here are some things to look out for when troubleshooting SSH agent forwarding.
7070

71+
### You must be using an SSH URL to check out code
72+
73+
SSH forwarding only works with SSH URLs, not HTTP(s) URLs. Check the *.git/config* file on your server and ensure the URL is an SSH-style URL like below:
74+
75+
<pre class="terminal">
76+
[remote "origin"]
77+
url = [email protected]:<em>yourAccount</em>/<em>yourProject</em>.git
78+
fetch = +refs/heads/*:refs/remotes/origin/*
79+
</pre>
80+
7181
### Your SSH keys must work locally
7282

7383
Before you can make your keys work through agent forwarding, they must work locally first. [Our guide on generating SSH keys][generating-keys] can help you set up your SSH keys locally.

0 commit comments

Comments
 (0)