v1.14.0 #304
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user