点开需要开启 SSH 远程链接的 LXC 里的 >_控制台,
# 允许远程登录
sed -i '/PermitRootLogin/ a PermitRootLogin yes' /etc/ssh/sshd_config
# 重启 ssh 服务
systemctl restart sshd
正文完
点开需要开启 SSH 远程链接的 LXC 里的 >_控制台,
# 允许远程登录
sed -i '/PermitRootLogin/ a PermitRootLogin yes' /etc/ssh/sshd_config
# 重启 ssh 服务
systemctl restart sshd