From b75ba3e39ba0ed48b5ce255a9b216b9c6222b4b4 Mon Sep 17 00:00:00 2001 From: Jeff MAURY Date: Tue, 21 Oct 2025 08:59:23 +0200 Subject: [PATCH] fix: add note about ssh auth socket for Git 2.51.0+ Signed-off-by: Jeff MAURY --- content/auto-launching-ssh-agent-when-git-starts.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/content/auto-launching-ssh-agent-when-git-starts.md b/content/auto-launching-ssh-agent-when-git-starts.md index 323b03ba..7ac81fd7 100644 --- a/content/auto-launching-ssh-agent-when-git-starts.md +++ b/content/auto-launching-ssh-agent-when-git-starts.md @@ -29,6 +29,10 @@ elif [ $agent_run_state = 1 ]; then ssh-add ~/.ssh/id_rsa fi ``` +**WARNING** + + 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 +replace in the previous sequence `ssh-agent -s` by `ssh-agent -T` which causes the socket to be created into the tmp folder. To close on shell exit, put in `~/.bash_logout`: