accept rsa keys for q7s-cp.py as well
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
Robin Müller 2022-09-26 16:20:53 +02:00
parent 8161d1cd88
commit ab919131fb
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -97,10 +97,11 @@ def build_cmd(args):
target = f"/tmp"
else:
target = args.target
accepted_key_rsa_args = "-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa"
if args.invert:
cmd += f"{port_args} {address}:{args.source} {target}"
cmd += f"{port_args} {accepted_key_rsa_args} {address}:{args.source} {target}"
else:
cmd += f"{port_args} {args.source} {address}:{target}"
cmd += f"{port_args} {accepted_key_rsa_args} {args.source} {address}:{target}"
return cmd