Removed the wormhole ssh invite directive from convert to server because it was failing. Added instructions if no key is found.

This commit is contained in:
Storm Dragon 2024-09-23 20:00:13 -04:00
parent d58cb5ee9e
commit cc38781c36

View File

@ -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