Resources · Troubleshooting · Q&A
SSH password login was turned off and the new session fails
Password authentication should stay on until a key in authorized_keys has already logged in from a second terminal.
Check command
sudo sshd -t
Copied.
Turning off password login before a key works removes the only path into the host. The PortGate SSH blueprints stop before they edit sshd when authorized_keys is empty. A hand edit can still lock you out.
Use the provider console or an already open session. Put the public key in authorized_keys, open a second SSH session with that key, and only then set PasswordAuthentication no. Do not remove the SSH allow rule in the firewall while you are testing the key.