Let's pretend that in the current shell, I have a variable.
$ echo $MY_VAR
$ 2
What I want is to pass the value of this variable to an argument of a command I'm executing through ssh, like:
ssh -i /ebs/keys/test [email protected] '/some/command -<here_i_want_to_have_value_of_$MY_VAR_variable>'
Thanks!