2020-12-03
gcp 開 ecs
紀錄一下 shell script in create
放這個然後 root 密碼是 abcd1234
sed -i 's/PasswordAuthentication no/PasswordAuthentication yes/g' /etc/ssh/sshd_config
sed -i 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config
service sshd restart
echo -e "abcd1234\nabcd1234" | passwd root
建造下去 …..