0

I want to run an Alias in Destination Server which the alias name is $VAR. I used this line in my script:

ssh -o Loglevel=QUIET -t user@192.168.x.x /bin/bash -ic '$VAR'

$VAR alias will run another script in the destination server.

But the output of my script is:

/bin/bash: -c: option requires an argument.

Can anybody help me how can I run output of a variable in SSH command?

Lee Mac
  • 15,615
  • 6
  • 32
  • 80

0 Answers0