Added ssh_config pubkey restriction
This commit is contained in:
parent
86499bbb38
commit
cdb12a374c
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue