Oracle cloud-init Linux

mowen 2021-03-11 2068

#!/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