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