【问题标题】:how to ssh to root of my virtual machine unbuntu 14.04如何SSH到我的虚拟机ubuntu 14.04的根目录
【发布时间】:2021-12-07 08:20:15
【问题描述】:

我的主机是 mac,我使用 VirtualBox 创建 ubuntu 14.04。我正在尝试 ssh 到它的 root 帐户,并为 root 设置了密码。 当我执行ssh -vvv root@ip 并输入我的密码时。 以下是调试信息:

debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
Permission denied, please try again.
如何连接我的虚拟机?

【问题讨论】:

    标签: ssh virtual-machine ubuntu-14.04


    【解决方案1】:

    默认情况下,SSH 守护进程不允许 root 登录。

    您必须将此行添加到您的 /etc/sshd_config 文件中:

    PermitRootLogin yes
    

    小心! ssh 到 root 不会记录正在发生的事情。 最好有一个具有sudo 权限的用户。这会被记录下来以供日后调查。

    【讨论】:

    • 很有用!非常感谢!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-12-28
    • 2016-02-12
    • 1970-01-01
    • 1970-01-01
    • 2015-05-24
    • 2016-08-27
    • 1970-01-01
    相关资源
    最近更新 更多