Skip to content

Commit

Permalink
Merge pull request #169 from intel/remoteconn
Browse files Browse the repository at this point in the history
add pid to ssh control master file name so that it doesn't get reused…
  • Loading branch information
harp-intel authored Jan 24, 2025
2 parents a17851b + 6a7f6d6 commit 3704eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/target/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ func (t *RemoteTarget) prepareSSHFlags(scp bool, useControlMaster bool, prompt b
if useControlMaster {
controlPathFlags := []string{
"-o",
"ControlPath=" + filepath.Join(os.TempDir(), `control-%h-%p-%r`),
"ControlPath=" + filepath.Join(os.TempDir(), fmt.Sprintf("control-%%h-%%p-%%r-%d", os.Getpid())),
"-o",
"ControlMaster=auto",
"-o",
Expand Down

0 comments on commit 3704eec

Please sign in to comment.