Securing RockyOS from SSH - Harrison-Blair/SYS-255 GitHub Wiki
Open the config file
sudo vi /etc/ssh/sshd_config
Change
PermitRootLogin yes
-> PermitRootLogin no
Restart the service
sudo systemctl restart sshd
Open the config file
sudo vi /etc/ssh/sshd_config
Change
PermitRootLogin yes
-> PermitRootLogin no
Restart the service
sudo systemctl restart sshd