diff --git a/packages/flutter_tools/lib/src/commands/fuchsia_reload.dart b/packages/flutter_tools/lib/src/commands/fuchsia_reload.dart index c5099e46d6..2551ce6f07 100644 --- a/packages/flutter_tools/lib/src/commands/fuchsia_reload.dart +++ b/packages/flutter_tools/lib/src/commands/fuchsia_reload.dart @@ -432,9 +432,10 @@ class _PortForwarder { '_PortForwarder failed to find a local port for $address:$remotePort'); return new _PortForwarder._(null, 0, 0, null, null); } + const String dummyRemoteCommand = 'date'; final List command = [ - 'ssh', '-F', sshConfig, '-nNT', '-vvv', - '-L', '$localPort:$ipv4Loopback:$remotePort', address]; + 'ssh', '-F', sshConfig, '-nNT', '-vvv', '-f', + '-L', '$localPort:$ipv4Loopback:$remotePort', address, dummyRemoteCommand]; printTrace("_PortForwarder running '${command.join(' ')}'"); final Process process = await processManager.start(command); process.stderr diff --git a/packages/fuchsia_remote_debug_protocol/lib/src/fuchsia_remote_connection.dart b/packages/fuchsia_remote_debug_protocol/lib/src/fuchsia_remote_connection.dart index 25478889c5..52c8dafff9 100644 --- a/packages/fuchsia_remote_debug_protocol/lib/src/fuchsia_remote_connection.dart +++ b/packages/fuchsia_remote_debug_protocol/lib/src/fuchsia_remote_connection.dart @@ -280,11 +280,14 @@ class _SshPortForwarder implements PortForwarder { } final String targetAddress = isIpV6 && interface.isNotEmpty ? '$address%$interface' : address; + const String dummyRemoteCommand = 'date'; command.addAll([ '-nNT', + '-f', '-L', formattedForwardingUrl, targetAddress, + dummyRemoteCommand, ]); _log.fine("_SshPortForwarder running '${command.join(' ')}'"); final Process process = await _processManager.start(command);