Skip to content

Commit 615caea

Browse files
authored
Merge pull request #80 from jeffmaury/agent-2.51.0
fix: add note about ssh auth socket for Git 2.51.0+
2 parents 70201b7 + b75ba3e commit 615caea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/auto-launching-ssh-agent-when-git-starts.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ elif [ $agent_run_state = 1 ]; then
2929
ssh-add ~/.ssh/id_rsa
3030
fi
3131
```
32+
**WARNING**
33+
34+
Starting with Git 2.51.0, `ssh-agent -s` will create the agent socket in the user home folder with causes issues if it contains spaces. A workaround is to
35+
replace in the previous sequence `ssh-agent -s` by `ssh-agent -T` which causes the socket to be created into the tmp folder.
3236

3337
To close on shell exit, put in `~/.bash_logout`:
3438

0 commit comments

Comments
 (0)