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