PVE下lxc开启SSH远程链接

57次阅读
没有评论

PVE下lxc开启SSH远程链接

点开需要开启SSH远程链接的LXC里的  >_控制台,

#允许远程登录

sed -i '/PermitRootLogin/ a PermitRootLogin yes' /etc/ssh/sshd_config

#重启ssh服务

systemctl restart sshd

正文完
 0
评论(没有评论)