MeshCentral icon indicating copy to clipboard operation
MeshCentral copied to clipboard

"syntax error near unexpected token `wget' "

Open Pyronaut18 opened this issue 10 months ago • 4 comments

I am getting this error "syntax error near unexpected token `wget' " when I copy and paste from "Add Mesh Agent". I am trying to add an agent to Ubuntu server 22.04.3. I tried to manually copy the the agent and also using the copy button.

Pyronaut18 avatar Apr 03 '24 13:04 Pyronaut18

Plz can u follow the template in the future

What web browser are u using? What os are u using the copy the link from? What's the ssh client are pasting into?

si458 avatar Apr 03 '24 13:04 si458

You mentioned that you were trying to add an agent to Ubuntu Server. Just to be clear, you are trying to remotely control an Ubuntu Server, not using an Ubuntu Server for meshcentral, and trying to control a non Ubuntu Server device, right?

This error is basically telling you that the syntax of what is being pasted into the command line is not valid.

Assuming that it didn't get modified somewhere between the copy and the paste, some common causes:

  1. Using a strange shell. Does the error start with "bash:" or something else? If it is something else, you may want to google any differences between bash and the shell you are using.
  2. Is wget installed on the client machine? It should be by default, but if you've got a stripped down client machine, it might not have it.
  3. Make sure there aren't any aliases defined in the ~/.bashrc file that conflict with the commands used in the copied text.

buckybytes avatar Apr 03 '24 17:04 buckybytes

@Pyronaut18 is this still an issue? are you using the latest version 1.1.22? what web browser where you using? which panel/page where you seeing the command? (agentinvite page, the add devices page)

si458 avatar Apr 19 '24 11:04 si458

@Pyronaut18 is this still an issue? are you using the latest version 1.1.22? what web browser where you using? which panel/page where you seeing the command? (agentinvite page, the add devices page)

si458 avatar May 16 '24 08:05 si458