PVE下lxc开启SSH远程链接
点开需要开启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