mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-19 05:37:51 +00:00
Merge pull request #569 from resin-io/permit-ssh-controlmaster
Do not explicitly disable ControlMaster option for device SSH connections
This commit is contained in:
commit
3095938b0e
@ -9,6 +9,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
### Added
|
||||
|
||||
- Do not explicitly disable ControlMaster option for device SSH connections
|
||||
- Fix issue when using resin deploy with non-standard stdin (e.g. git bash on windows)
|
||||
|
||||
## [6.0.0] - 2017-06-26
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Generated by CoffeeScript 1.12.6
|
||||
// Generated by CoffeeScript 1.12.5
|
||||
|
||||
/*
|
||||
Copyright 2017 Resin.io
|
||||
@ -51,7 +51,7 @@ module.exports = {
|
||||
_.assign(options, {
|
||||
deviceIp: deviceIp
|
||||
});
|
||||
command = "ssh " + verbose + " -t -p " + options.port + " -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlMaster=no root@" + options.deviceIp + " -- \"resin-provision interactive\"";
|
||||
command = "ssh " + verbose + " -t -p " + options.port + " -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@" + options.deviceIp + " -- \"resin-provision interactive\"";
|
||||
subShellCommand = getSubShellCommand(command);
|
||||
return child_process.spawn(subShellCommand.program, subShellCommand.args, {
|
||||
stdio: 'inherit'
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Generated by CoffeeScript 1.12.6
|
||||
// Generated by CoffeeScript 1.12.5
|
||||
|
||||
/*
|
||||
Copyright 2017 Resin.io
|
||||
@ -76,7 +76,7 @@ module.exports = {
|
||||
return options.container;
|
||||
}).then(function(container) {
|
||||
var command, shellCmd, subShellCommand;
|
||||
command = "ssh " + verbose + " -t -p " + options.port + " -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlMaster=no root@" + options.deviceIp;
|
||||
command = "ssh " + verbose + " -t -p " + options.port + " -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null root@" + options.deviceIp;
|
||||
if (!options.host) {
|
||||
shellCmd = '/bin/sh -c $"\'if [ -e /bin/bash ]; then exec /bin/bash; else exec /bin/sh; fi\'"';
|
||||
command += " docker exec -ti " + container + " " + shellCmd;
|
||||
|
@ -1,4 +1,4 @@
|
||||
// Generated by CoffeeScript 1.12.6
|
||||
// Generated by CoffeeScript 1.12.5
|
||||
|
||||
/*
|
||||
Copyright 2016-2017 Resin.io
|
||||
@ -112,7 +112,7 @@ module.exports = {
|
||||
return Promise["try"](function() {
|
||||
var command, sshProxyCommand, subShellCommand;
|
||||
sshProxyCommand = getSshProxyCommand(hasTunnelBin);
|
||||
command = "ssh " + verbose + " -t -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ControlMaster=no " + sshProxyCommand + " -p " + options.port + " " + username + "@ssh." + proxyUrl + " enter " + uuid + " " + containerId;
|
||||
command = "ssh " + verbose + " -t -o LogLevel=ERROR -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null " + sshProxyCommand + " -p " + options.port + " " + username + "@ssh." + proxyUrl + " enter " + uuid + " " + containerId;
|
||||
subShellCommand = getSubShellCommand(command);
|
||||
return child_process.spawn(subShellCommand.program, subShellCommand.args, {
|
||||
stdio: 'inherit'
|
||||
|
@ -69,7 +69,6 @@ module.exports =
|
||||
-o LogLevel=ERROR \
|
||||
-o StrictHostKeyChecking=no \
|
||||
-o UserKnownHostsFile=/dev/null \
|
||||
-o ControlMaster=no \
|
||||
root@#{options.deviceIp} \
|
||||
-- \"resin-provision interactive\""
|
||||
|
||||
|
@ -97,7 +97,6 @@ module.exports =
|
||||
-o LogLevel=ERROR \
|
||||
-o StrictHostKeyChecking=no \
|
||||
-o UserKnownHostsFile=/dev/null \
|
||||
-o ControlMaster=no \
|
||||
root@#{options.deviceIp}"
|
||||
|
||||
if not options.host
|
||||
|
@ -121,7 +121,6 @@ module.exports =
|
||||
-o LogLevel=ERROR \
|
||||
-o StrictHostKeyChecking=no \
|
||||
-o UserKnownHostsFile=/dev/null \
|
||||
-o ControlMaster=no \
|
||||
#{sshProxyCommand} \
|
||||
-p #{options.port} #{username}@ssh.#{proxyUrl} enter #{uuid} #{containerId}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user