sshCommand method
Implementation
List<String> sshCommand({
required bool ipv6,
required String sshTarget,
required String command,
bool addHostToKnownHosts = false,
bool lastCommand = false,
String endCharacter = ';',
}) =>
[
'ssh',
'-o',
'BatchMode=yes',
if (addHostToKnownHosts) ...[
'-o',
'StrictHostKeyChecking=accept-new',
],
if (ipv6) '-6',
sshTarget,
'$command ${lastCommand ? '' : endCharacter}',
];