Oracle cloud-init CentOS

mowen 2021-03-11 572

#!/bin/bash
echo root:xxx |sudo chpasswd root
sudo sed -i 's/^#\?PermitRootLogin.*/PermitRootLogin yes/g' /etc/ssh/sshd_config;
sudo sed -i 's/^#\?PasswordAuthentication.*/PasswordAuthentication yes/g' /etc/ssh/sshd_config;
sudo service sshd restart


最新回复 (0)
返回
发新帖
X