Update install.sh
This commit is contained in:
@@ -45,12 +45,13 @@ curl http://192.168.0.187:3000/zoli/linux-configs/raw/branch/main/theme.conf -o
|
|||||||
|
|
||||||
echo "[9/${steps}] deleting ~/.ssh/id_rsa"
|
echo "[9/${steps}] deleting ~/.ssh/id_rsa"
|
||||||
rm ~/.ssh/id_rsa
|
rm ~/.ssh/id_rsa
|
||||||
echo "[9/${steps}] deleting ~/.ssh/id_rsa.pub"
|
echo "[10/${steps}] deleting ~/.ssh/id_rsa.pub"
|
||||||
rm ~/.ssh/id_rsa.pub
|
rm ~/.ssh/id_rsa.pub
|
||||||
|
|
||||||
|
|
||||||
echo "[9/${steps}] creating SSH key"
|
echo "[11/${steps}] creating SSH key"
|
||||||
ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa <<<y >/dev/null 2>&1
|
ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa <<<y >/dev/null 2>&1
|
||||||
echo "[9/${steps}] creating authorized_keys"
|
echo "[12/${steps}] creating authorized_keys"
|
||||||
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
|
cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys
|
||||||
|
echo "[13/${steps}] copying authorized_keys to rpi"
|
||||||
scp ~/.ssh/authorized_keys zoli@192.168.0.187:~/.ssh/
|
scp ~/.ssh/authorized_keys zoli@192.168.0.187:~/.ssh/
|
||||||
|
|||||||
Reference in New Issue
Block a user