cent 환경으로 password 변경하는 법
sed -i "s|#PasswordAuthentication no|PasswordAuthentication yes|g" /etc/ssh/sshd_config
systemctl restart sshd
echo '<비밀번호>' | passwd --stdin ec2-user
ubuntu 환경으로 password 변경하는 법
sed -i "s/PasswordAuthentication no/PasswordAuthentication yes/g" /etc/ssh/sshd_config
systemctl restart sshd
echo '<ubuntu:비밀번호>' | chpasswd'Linux > shell script' 카테고리의 다른 글
| [Linux] shell script for문 정리 (0) | 2022.06.12 |
|---|---|
| [Linux] shell script if문 정리 (0) | 2022.06.11 |
댓글