Assignment 3.0: Securing SSH
Summary
This assignment went extremely well the only problem I had was a lot of the guides had different ways to restart the sshd service so it was tricky to find which one work.
Commands
vi /etc/shh/sshd_config
- Go to the line that says
#PermitRootLogin yes
- Get rid of the
#
and turnyes
tono
- end result
PermitRootLogin no
- end result
- Write and Quit
service sshd restart
- Now root won’t be able to ssh
Notes
- Root uid is 0
- First user uid is 1000
- uids 999(polkitd), 998(libstoragemgmt), 997(chrony)
polkitd
is a system wide privilege controllerlibstoragemgmt
A library for storage management (API)chrony
Netowrk Time Protocol (NTP) uses port 323