v1.14.0 #304
@ -97,10 +97,11 @@ def build_cmd(args):
|
|||||||
target = f"/tmp"
|
target = f"/tmp"
|
||||||
else:
|
else:
|
||||||
target = args.target
|
target = args.target
|
||||||
|
accepted_key_rsa_args = "-o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa"
|
||||||
if args.invert:
|
if args.invert:
|
||||||
cmd += f"{port_args} {address}:{args.source} {target}"
|
cmd += f"{port_args} {accepted_key_rsa_args} {address}:{args.source} {target}"
|
||||||
else:
|
else:
|
||||||
cmd += f"{port_args} {args.source} {address}:{target}"
|
cmd += f"{port_args} {accepted_key_rsa_args} {args.source} {address}:{target}"
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user