The command you have provided is correct!! Error is related to ambiguous redirect that means whether you are not connected/into to HTB network or might be issue with IP address you provided in the command. If it still exist then reset the machine, verify ip address provided and look for any typo in the command