For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Im2's avatar
Im2
Icon for Nimbostratus rankNimbostratus
May 24, 2022

Syntax Error: unexpected argument "rm" using SSH

Hi,

I'm struggling with this and will be happy for some help. I'm trying to send this command to a remote BigIP device:

ssh <username>@<device_ip> 'rm -v -f <remote_directory<remote_file>'

And receive the following error: 'Syntax Error: unexpected argument "rm" '

I verified that the username and device IP are valid (no special characters or anything like that). I would mention that other commands that are sent in ssh succeed, such as:

ssh netstat -nr

What can be the issue?

Thanks a lot for the help 🙂

1 Reply

  • Im2This could be associated directly to the OS that F5 uses for the devices because I am receiving the same error on my F5 devices but not other Linux/Unix based OSs from the same source device.