From 31929bf45259b04ad6f7730bfcfcd3f1b12f0a2a Mon Sep 17 00:00:00 2001 From: Toma Puljak Date: Wed, 10 Apr 2024 08:20:46 +0000 Subject: [PATCH] fix: ssh agent forwarding --- cmd/daytona/config/ssh_file.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/daytona/config/ssh_file.go b/cmd/daytona/config/ssh_file.go index 893658e75c..549174a7b8 100644 --- a/cmd/daytona/config/ssh_file.go +++ b/cmd/daytona/config/ssh_file.go @@ -118,7 +118,8 @@ func generateSshConfigEntry(profileId, workspaceId, projectName, knownHostsPath tab+"User daytona\n"+ tab+"StrictHostKeyChecking no\n"+ tab+"UserKnownHostsFile %s\n"+ - tab+"ProxyCommand %s ssh-proxy %s %s %s\n\n", projectHostname, knownHostsPath, daytonaPath, profileId, workspaceId, projectName) + tab+"ProxyCommand %s ssh-proxy %s %s %s\n"+ + tab+"ForwardAgent yes\n\n", projectHostname, knownHostsPath, daytonaPath, profileId, workspaceId, projectName) return config, nil }