Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用 ssh 密钥对以 root 用户身份登录 lightail 实例机器。
我收到的回复是
请以用户“ubuntu”而不是用户“root”登录。
我想知道如何检查是否禁用了 root 登录,如果是,如何使用 ssh 密钥启用它。
在 Ubuntu 上,对于 SSH,这是通过 SSH 服务器配置配置的:/etc/ssh/sshd_config
在那里你应该有一排:
PermitRootLogin yes
这就是你要找的。