一键开启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
Last modification:January 2, 2024
If you think my article is useful to you, please feel free to appreciate