copySshKeyCommand method

  1. @override
List<String> copySshKeyCommand({
  1. required String filePath,
  2. required bool ipv6,
  3. required String targetDevice,
})
override

Implementation

@override
List<String> copySshKeyCommand({
  required String filePath,
  required bool ipv6,
  required String targetDevice,
}) {
  return commandRunner([
    'type $filePath |',
    'ssh $targetDevice "cat >> .ssh/authorized_keys"'
  ]);
}