firstboot: change value of 'KbdInteractiveAuthentication' to 'yes'

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: I5e9ce3611da43167b5166376d4a82fabddde4a55
This commit is contained in:
Dongjin Kim
2024-01-25 18:54:19 +09:00
parent 6052e54374
commit ae463e7218

View File

@@ -23,7 +23,8 @@ resize2fs ${rootdev}
rm -f /etc/ssh/ssh_host* && ssh-keygen -A
sed -i "s/PasswordAuthentication.*/PasswordAuthentication yes/g" /etc/ssh/sshd_config
sed -i "s/^PasswordAuthentication.*/PasswordAuthentication yes/g" /etc/ssh/sshd_config
sed -i "s/^KbdInteractiveAuthentication.*/KbdInteractiveAuthentication yes/g" /etc/ssh/sshd_config
systemctl enable ssh
systemctl restart ssh