【问题标题】:What user runs the user-data script when starting up a new ubuntu EC2 instance?什么用户在启动新的 ubuntu EC2 实例时运行用户数据脚本?
【发布时间】:2011-11-10 02:46:35
【问题描述】:

我正在尝试使用用户数据中的脚本启动 EC2 实例。该脚本包含对远程服务器的 rsync 调用,但这失败了。我相信这是因为我需要设置运行用户数据的用户才能连接到远程服务器。

哪个用户运行用户数据脚本?

我登录的stderr是:

Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(601) [Receiver=3.0.7]

【问题讨论】:

    标签: ubuntu amazon-ec2 amazon rsync


    【解决方案1】:

    脚本似乎以root 运行。因此,如果您必须通过 SSH 进行通信,请确保 root 帐户能够建立连接。

    【讨论】:

      猜你喜欢
      • 2022-01-23
      • 1970-01-01
      • 2016-12-24
      • 1970-01-01
      • 2016-10-14
      • 2013-06-26
      • 1970-01-01
      • 1970-01-01
      • 2019-11-21
      相关资源
      最近更新 更多