bash heredoc gets corrupted(randomly) when pasted to ssh terminal

This question already has an answer here:

  • How to use SSH to run a shell script on a remote machine? 11 answers

  • 尝试按照这里所建议的

    ssh remoteuser@ip.address.of.server 'bash -s' < scriptfile.sh
    
    链接地址: http://www.djcxy.com/p/97146.html

    上一篇: 需要在不同的Unix365体育投注那个是真的_bet 365-体育投注官网下载_365体育在线投注点球掷中率排行上执行一个shell脚本

    下一篇: bash heredoc在粘贴到ssh终端时会被(随机)破坏