From 4b489ad2c72b5cea7e734c6bf96e1ce9f54dd73c Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Thu, 5 Oct 2017 20:11:04 +0200 Subject: [PATCH] config: connect: `ssh_command` parameter did not work --- sshbytestream/ssh.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshbytestream/ssh.go b/sshbytestream/ssh.go index bfbc50d..ef155cc 100644 --- a/sshbytestream/ssh.go +++ b/sshbytestream/ssh.go @@ -77,7 +77,7 @@ func Outgoing(remote SSHTransport) (s OutgoingSSHByteStream, err error) { var sshCommand = SSHCommand if len(remote.SSHCommand) > 0 { - sshCommand = SSHCommand + sshCommand = remote.SSHCommand } if s.c, err = util.NewIOCommand(sshCommand, sshArgs, util.IOCommandStderrBufSize); err != nil {