Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 3425  / 2 Years ago, fri, july 15, 2022, 11:33:25

I have added the following line to /etc/ssh/ssh_config



PasswordAuthentication no


And restarted my sshd with



sudo service sshd restart
sudo service ssh restart


No output from either, dont know if it restarted or not. Tryed restarting with this too:



sudo /etc/init.d/ssh restart


But still when I connect via SSH it prompts for credentials and lets me log in. I'm not doing anything differently from the 4 versions of Ubuntu previously which I have done this for - any ideas why Ubuntu 15.04 no longer respects the "PasswordAuthentication no" line?


More From » ssh

 Answers
7

Two near identical config files:



/etc/ssh/ssh_config


and



/etc/ssh/sshd_config


For the SSH server, put the setting in the sshd config file, NOT the ssh config file.


[#19435] Sunday, July 17, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nquirewha

Total Points: 256
Total Questions: 109
Total Answers: 122

Location: Namibia
Member since Mon, Feb 21, 2022
2 Years ago
;