generating a public ssh key to be part of the image. this one should not change quite as often and can be used for deploy keys

This commit is contained in:
toby 2018-11-07 22:55:03 +01:00
parent a018f2c1fe
commit b9940d88f4
1 changed files with 5 additions and 8 deletions

View File

@ -141,16 +141,13 @@ chmod +x $MNT_DIR/usr/local/bin/start_me_up.sh
chmod +x $MNT_DIR/usr/local/bin/shut_me_down.sh
chroot $MNT_DIR systemctl enable start-me-up || fail "failed to enable start-me-up"
chroot $MNT_DIR usermod -p '$1$A5VSg/1j$qqNLwyTlU5BH1IUMPStFB0' root
chroot $MNT_DIR ssh-keygen -q -f /root/.ssh/id_rsa -C root@pxeboot -N ""
#echo "Enter root password:"
#while ! chroot $MNT_DIR passwd root
#do
# echo "Try again"
#done
echo "### public ssh key for root of this install"
cat $MNT_DIR/root/.ssh/id_rsa.pub
##################