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 {