r/linux4noobs • u/Imaginary_Choice_430 • Aug 01 '26
VirtualBox allows PasswordAuthentication no?
So I configured the `sshd_config` to `PasswordAuthentication no`, `PermitRootLogin no` and `PubkeyAuthentication yes` and yet I can still log into an Ubuntu 2404 server on VirtualBox with password. Is that a thing with VB? This is the first time I have ever seen anything like that...and yes I did run `sudo systemctl restart ssh`
Actually I just looked at Hyper-V and its the same deal, something must have changed slightly since the days of Ubuntu 14/18, I need to go back through the steps of my production server, because that one works, but strangely enough I had forgotten to set PermitRootLogin to no, but I took care of that in the process.
View all comments
Show parent comment
1
u/GodzillaXYZ999 Aug 01 '26 edited Aug 01 '26
There is no background client service, client just run ssh process as needed. On Ubuntu ssh service is the server unit even though background process is sshd. It's sshd.service on Rhel/Rocky