1diff --git a/tool/tsh/common/tsh.go b/tool/tsh/common/tsh.go
2index 5de21c69d0..3995c19e3c 100644
3--- a/tool/tsh/common/tsh.go
4+++ b/tool/tsh/common/tsh.go
5@@ -1231,10 +1231,11 @@ func Run(ctx context.Context, args []string, opts ...CliOption) error {
6 }
7
8 var err error
9- cf.executablePath, err = os.Executable()
10+ tempBinaryPath, err := os.Executable()
11 if err != nil {
12 return trace.Wrap(err)
13 }
14+ cf.executablePath = filepath.Dir(tempBinaryPath) + "/tsh"
15
16 // configs
17 setEnvFlags(&cf)