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?
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
EDIT: If you never going to use ssh what so ever, (like, never going to) why not disable it completely?
If you have it running.
Disable it too (If you never going to use it)