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:
Kostas Lekkas 2016-07-20 17:24:42 +03:00
parent 97c768edcd
commit 42d0b52df7

View File

@ -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)