Running a Bash script over ssh

后端 未结 5 1385
春和景丽
春和景丽 2020-11-28 07:05

I\'m trying to write a Bash script that will SSH into a machine and create a directory. The long-term goal is a bit more complicated, but for now I\'m starting simple. Howev

5条回答
  •  囚心锁ツ
    2020-11-28 07:52

    The variables are being evaluated in the script on the local machine. You need to subsitute the dollar signs with escaped dollar signs.

    #!/bin/bash
    ssh -T tunneluser@111.222.333.444 <

提交回复
热议问题