mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 00:18:42 +09:00
firstboot: fix to enable PasswordAuthentication
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: I8ac07f3febf9d0575d8cddb53e7b2eb1f6b3742c
This commit is contained in:
@@ -23,7 +23,10 @@ resize2fs ${rootdev}
|
|||||||
|
|
||||||
rm -f /etc/ssh/ssh_host* && ssh-keygen -A
|
rm -f /etc/ssh/ssh_host* && ssh-keygen -A
|
||||||
|
|
||||||
sed -i "s/^PasswordAuthentication.*/PasswordAuthentication yes/g" /etc/ssh/sshd_config
|
for sshd_config in /etc/ssh/sshd_config \
|
||||||
|
/etc/ssh/sshd_config.d/60-cloudimg-settings.conf; do
|
||||||
|
sed -i "s/^PasswordAuthentication.*/PasswordAuthentication yes/g" ${sshd_config}
|
||||||
|
done
|
||||||
sed -i "s/^KbdInteractiveAuthentication.*/KbdInteractiveAuthentication yes/g" /etc/ssh/sshd_config
|
sed -i "s/^KbdInteractiveAuthentication.*/KbdInteractiveAuthentication yes/g" /etc/ssh/sshd_config
|
||||||
|
|
||||||
systemctl enable ssh
|
systemctl enable ssh
|
||||||
|
|||||||
Reference in New Issue
Block a user