1

I am trying to prevent remote access for my laptop.

I went into sshd_config to try and set it up. My IT guy recommended the following changes to accomplish this:

PermitRootLogin no
PubkeyAuthentication no
PasswordAuthentication no

However, when I went to make the changes the line of code says:

#PermitRootLogin prohibit

This seems like a double negative. so yes means prohibit and no means don't prohibit. Can anyone confirm?

1 Answers1

0

From: How do I disable remote SSH login as root from a server?

Put the following line to /etc/ssh/sshd_config:

PermitRootLogin no

Afterwards; restart the service

sudo service ssh restart

EDIT: If you never going to use ssh what so ever, (like, never going to) why not disable it completely?

sudo service ssh stop.

If you have it running.

Disable it too (If you never going to use it)

sudo systemctl disable ssh
Jane
  • 1,085