From cc38781c36073f88b3181a4dd759ef27efd2ad7b Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 23 Sep 2024 20:00:13 -0400 Subject: [PATCH] Removed the wormhole ssh invite directive from convert to server because it was failing. Added instructions if no key is found. --- .includes/convert-to-server.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.includes/convert-to-server.sh b/.includes/convert-to-server.sh index 1b7cfd4..01edfa2 100755 --- a/.includes/convert-to-server.sh +++ b/.includes/convert-to-server.sh @@ -22,12 +22,10 @@ mkdir -p ~/.ssh if [[ -e ~/.ssh/known_hosts ]]; then dialog --backtitle "Configure Stormux" \ --msgbox "Key found in ~/.ssh/known_hosts. If you are sure this is the correct key, press enter, otherwise press control+c to close this application and fix your key." -1 -1 --stdout -else - wormhole ssh invite fi if ! [[ -e ~/.ssh/authorized_keys ]]; then dialog --backtitle "Configure Stormux" \ - --msgbox "No ssh key found, exiting." -1 -1 --stdout + --msgbox "No public ssh key found. Please upload your ssh key to ~/.ssh/known_hosts before continuing.\nIf you do not have a key, you can create it with ssh-keygen.\nYou can use wormhole ssh invite or ssh-copy-id to upload the key." -1 -1 --stdout exit 1 fi sudo sed -i 's/^#PasswordAuthentication yes$/PasswordAuthentication no/' /etc/ssh/sshd_config