Linux noob here.
I have a VM on Google Cloud. Have Debian on it. I used to connect to it through Google Cloud's ssh client.
In file /etc/ssh/sshd_config
i changed the value:
PermitRootLogin prohibit-password
PasswordAuthentication no
to
PermitRootLogin yes
PasswordAuthentication yes
Now I'm stuck on Transferring SSH keys to the VM.
When I want to ssh through another client It asks me of a password, which I do not know.
I think I made a silly mistake. Is there anyway I can revert that change or ssh ?
EDIT: I'm tasked with setting up our DevOps pipeline. In this case, as a linux noob, 'I locked the door and slid the key under it'. It's no problem since the docs I produced helped me do a weeks work in an hour. And I already was planning to do all the process from scratch to verify. Still I won't remove the old locked VM, let it stay passive. Someday I may return and try your advices. Thanks for answers.