mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-08 03:44:13 +00:00
resin ssh: disable ControlMaster ssh option
This change was necessary because our ssh gateway does not support ControlMaster mode. Closes #366
This commit is contained in:
parent
97c768edcd
commit
42d0b52df7
@ -94,7 +94,11 @@ module.exports =
|
||||
.then ({ username, uuid, containerId }) ->
|
||||
throw new Error('Did not find running application container') if not containerId?
|
||||
Promise.try ->
|
||||
command = "ssh #{verbose} -t -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
|
||||
command = "ssh #{verbose} -t \
|
||||
-o LogLevel=ERROR \
|
||||
-o StrictHostKeyChecking=no \
|
||||
-o UserKnownHostsFile=/dev/null \
|
||||
-o ControlMaster=no \
|
||||
-p #{options.port} #{username}@ssh.#{settings.get('proxyUrl')} enter #{uuid} #{containerId}"
|
||||
|
||||
subShellCommand = getSubShellCommand(command)
|
||||
|
Loading…
x
Reference in New Issue
Block a user