在host1上,把下面的两行内容通过ssh追加到host2上的/etc/ca-certificates.conf文件中

I am a student

Are you ok

ssh host2 "echo -e \"I am a student\nAre you ok\" >> /etc/ca-certificates.conf"

注意:

上面有两对"",中间的一对要用 \ 转义.

相关文章:

  • 2021-12-28
  • 2021-08-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-28
  • 2022-12-23
  • 2021-11-06
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案