[ubuntu] SSH login with key autenthificaton, problem when disabling password auth

[ubuntu] SSH login with key autenthificaton, problem when disabling password auth

Hi everyone, hope you are having a nice day!

I have been working around key authentication ssh login from Windows CMD into one virtual server (Ubuntu 20.x) I have set up in my computer.

I generated and installed the keys, everything works fine. I can login with ssh -i C:Usersuserkey [email protected] successfully.

Now I am trying to disable password login trough sshd_config.


When I set PasswordAuthentications = no and after run sudo service ssh restart I receive:

Job for ssh.service failed because the control process exited with error code.


systemctl status ssh.service
ssh.service – OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-08-07 15:36:52 PDT; 4s ago
Docs: man:sshd(8)
Process: 3201 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=255/EXCEPTION)


sudo sshd -t
/etc/ssh/sshd_config: line 58: Bad configuration option: PasswordAuthentications

I am a new user in Linux, have been reading and trying everything I could find on the internet with no luck.. Any ideas?
It is just that line on sshd_config, if I revert that change, ssh works again. So probably there is some other setting I am missing in order to get succes..

Thank you in advance!

I am working on my English as well, I am sorry if there are some spelling mistakes…


Previous Deja-Dup- ignore individual file?
Next live cd

About author

You might also like

Ubuntu Dsicussions 0 Comments

[ubuntu] There were 2 icons of each Libre Office program in dash

The other day I notice when pressing Super key, and also clicking on the applications that there were 2 icons of each Libre Office application, with 2 different versions. Like

Ubuntu Dsicussions 0 Comments

[ubuntu] need help enable usb boot in Raspberry pi running Ubuntu 20.04

Hi all, I am reying to enable boot from usb on my raspberry pi. it is currently using ubuntu 20.04 os. but while doing so, i am getting stick in

Ubuntu Dsicussions 0 Comments

[ubuntu_mate] Creating a SWAP and a new Home partition

Hi, I am trying to create a SWAP and a new home partition in the unallocated space in the hard drive. I have an 12 year old laptop with only


No Comments Yet!

You can be first to comment this post!

Leave a Reply