I m writing a program to execute remote script .
(display remote file content)
Whenever i execute following statement it gives me an error.
ssh -ttq firstname.lastname@example.org $command
However following script work find.
ssh -ttq email@example.com cat /root/vm.cfg
I have added rsa key so that it should not ask for any password while doing ssh.
What is wrong with using variable in ssh.
What could be the issue here?