一键开启ssh
CentOS系列,通过NoVNC连接后执行以下命令
yum -y install openssh-server && systemctl restart sshd
Debian系列,通过NoVNC连接后执行以下命令
cat >> /etc/ssh/sshd_config << EOF
PasswordAuthentication yes
PermitRootLogin yes
EOF
service ssh restart
Alpine Linux,通过NoVNC连接后执行以下命令
apk update && apk add openssh-server && rc-update add sshd
echo "PermitRootLogin yes">>/etc/ssh/sshd_config
service sshd start