0

I want to set some variable in ssh session which is nested.

ssh host1 << EOF 
    ssh host2 << EOF1 
       myvar="Hello"
       echo=\$myvar
    EOF1
EOF 

What is wrong in this bash script?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.