Added ssh_config pubkey restriction

This commit is contained in:
xdrm-brackets 2017-01-21 18:02:04 +01:00
parent 86499bbb38
commit cdb12a374c
1 changed files with 5 additions and 1 deletions

View File

@ -85,7 +85,7 @@ step3(){
test $confirm_burn != "y" && echo "<<< aborting" && exit;
# (2) Burning image into disk #
sudo dd if=./original.img of=$DEV bs=4M || $( echo "<<< error: dd command failed" && exit );
sudo dd if=./original.img of=$DEV bs=4M status=progress || $( echo "<<< error: dd command failed" && exit );
echo "<<< done";
@ -204,6 +204,10 @@ step7(){
sudo chown -R 666:666 /mnt/home/sats-user/.ssh/;
sudo chmod 400 /mnt/home/sats-user/.ssh/*;
# (7) Restrict access to pubkey only (no password) #
echo " (.) Restrict access to pubkey";
echo "\nAllowGroups\tssh-key\nPasswordAuthentication\tno" | sudo tee -a /mnt/etc/ssh/ssh_config > /dev/null;
echo "<<< done";