diff --git a/install.sh b/install.sh index 49c17a0..820954a 100644 --- a/install.sh +++ b/install.sh @@ -41,3 +41,16 @@ then fi echo "[8/${steps}] downloading theme.conf" curl http://192.168.0.187:3000/zoli/linux-configs/raw/branch/main/theme.conf -o ~/.config/kitty/theme.conf + + +echo "[9/${steps}] deleting ~/.ssh/id_rsa" +rm ~/.ssh/id_rsa +echo "[9/${steps}] deleting ~/.ssh/id_rsa.pub" +rm ~/.ssh/id_rsa.pub + + +echo "[9/${steps}] creating SSH key" +ssh-keygen -q -t rsa -N '' -f ~/.ssh/id_rsa <</dev/null 2>&1 +echo "[9/${steps}] creating authorized_keys" +cp ~/.ssh/id_rsa.pub ~/.ssh/authorized_keys +scp ~/.ssh/authorized_keys zoli@192.168.0.187:~/.ssh/