无法在 Jelastic 环境的本机模板中使用 root 用户登录

Can't login with root user in native templates of environments Jelastic

当我在某些节点中创建新环境时(即使用 Nginx),我无法使用 root 用户访问该节点

我用 a 用户登录,而不是 root。

Using username "251X-XXX".
Authenticating with public key "rsa-key-XXXXXXXX"
Last login: Thu Sep 28 09:11:56 2017
nginx@node251X-delete ~ $ sudo date

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

[sudo] password for nginx:
Sorry, try again.

简介:

以 root 用户身份进入此节点的任何备选方案或配置。

谢谢

只为自管理节点提供根用户(自定义Docker/弹性VPS)。

您可以使用 sudo(例如 sudo service nginx restart)执行特定的白名单命令。除此之外,您不需要 root 访问权限。

如果您不这么认为,请联系您的托管服务提供商讨论您的需求,他们可以为您找到解决方案。

Jelastic 不提供对单独容器的根访问权限。同时,通过 SSH 访问容器时,用户会收到所有必需的权限,并且还可以使用以下类型(和其他)的 sudo 命令管理主要服务:

sudo /etc/init.d/jetty start
sudo /etc/init.d/mysql stop
sudo /etc/init.d/tomcat restart
sudo /etc/init.d/memcached status
sudo /etc/init.d/mongod reload
sudo /etc/init.d/nginx upgrade
sudo /etc/init.d/httpd help 

例如,您可以使用以下命令重启nginx:

 sudo /etc/init.d/nginx restart

不需要密码。

Note: If you deploy any application, change the configurations or add any extra functionality via SSH to your Jelastic environment, this will not be displayed at the Jelastic dashboard.

使用我们的文档,您将了解如何:

use SFTP and FISH protocols

manage containers via SSH with Capistrano