I am new to Linux/Ubuntu and I have a Ubuntu instance in GCP and want to restrict the root access from the outside like ssh and putty, but however I want to access root by using the command
su root . Is there any way to achieve that it will good for security.
PermitRootLogin no in
/etc/ssh/ssh_config but it didn't work. I can still access root using putty.