Skip to content

Commit e3ae9c7

Browse files
authored
Update sharing-git-credentials.md: Adapt to devcontainers scenario
1 parent dcd26ff commit e3ae9c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remote/advancedcontainers/sharing-git-credentials.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ If you use HTTPS to clone your repositories and **have a [credential helper conf
2929

3030
There are some cases when you may be cloning your repository using SSH keys instead of a credential helper. To enable this scenario, the extension will automatically forward your **local [SSH agent](https://www.ssh.com/ssh/agent) if one is running**.
3131

32-
First of all, you should ensure that [SSH agent forwarding](https://www.ssh.com/academy/ssh/agent#ssh-agent-forwarding) is enabled. To use agent forwarding, the `ForwardAgent` option must be set to `yes` on the client (see ssh_config at `~/.ssh/config`, `/etc/ssh/ssh_config` or `%programdata%\ssh\ssh_config`) and the `AllowAgentForwarding` option must be set to `yes` on the server (see sshd_config at `/etc/ssh/sshd_config` or `%programdata%\ssh\sshd_config`).
32+
First, you should ensure that [SSH agent forwarding](https://www.ssh.com/academy/ssh/agent#ssh-agent-forwarding) is enabled on the **host**. Search for the `AllowAgentForwarding` option in sshd_config (usually located at `/etc/ssh/sshd_config` or `%programdata%\ssh\sshd_config`). If not already, you should set it to `yes` and reload or restart the `sshd` service.
3333

3434
You can add your local SSH keys to the agent if it is running by using the `ssh-add` command. For example, run this from a terminal or PowerShell:
3535

0 commit comments

Comments
 (0)