Skip to content

Commit

Permalink
allow root ssh login.
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsx authored Jul 20, 2023
1 parent 6e3ece1 commit ef2397d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions build_lpi4a.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ get_riscv_system() {
chmod 755 ${rootfs_dir}/opt/lpi4a-sysfan.sh
chmod 755 ${rootfs_dir}/usr/lib/systemd/system/lpi4a-sysfan.service
chmod +x ${rootfs_dir}/etc/rc.d/init.d/extend-root.sh
sed -i "s|#PermitRootLogin prohibit-password|PermitRootLogin yes|g" ${rootfs_dir}/etc/ssh/sshd_config

cat << EOF | chroot ${rootfs_dir} /bin/bash
echo 'fedora' | passwd --stdin root
Expand Down

0 comments on commit ef2397d

Please sign in to comment.