Skip to content

Commit cd98edd

Browse files
authored
Merge pull request #3698 from nirs/hostagenet-forward-logs
hostagent: Log ssh forwarding command
2 parents 910e286 + 1f6fec2 commit cd98edd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/hostagent/hostagent.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -758,6 +758,7 @@ func forwardSSH(ctx context.Context, sshConfig *ssh.SSHConfig, port int, local,
758758
}
759759
}
760760
cmd := exec.CommandContext(ctx, sshConfig.Binary(), args...)
761+
logrus.Debugf("Running %q", cmd)
761762
if out, err := cmd.Output(); err != nil {
762763
if verb == verbForward && strings.HasPrefix(local, "/") {
763764
if reverse {

0 commit comments

Comments
 (0)