I have a google compute engine instance, and I want to disable public key authentication (yes I know that it's a bad idea, before people jump in on me, just bear with me here) and in its place enable password authentication.
I have looked around, and I have all the relevant configurations set up correctly (at least as far as I can understand), but when I try to connect to the server, I get a Permission denied (publickey).
error.
My (relevant configuration) thus far is:
PermitRootLogin without-password
PermitRootLogin yes
RSAAuthentication no
PubkeyAuthentication no
PermitEmptyPasswords no # this is correct, I don't want it set to yes
PasswordAuthentication yes
The connection string I am using (ssh command) is the following:
ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no root@<some_host>
with <some_host>
being the server's relevant ip address. Is there something I am doing wrong? Perhaps something that I am missing (configuration wise)?