How to Allow Only root User to Login Through SSH (Doc ID 1614856.1)

Last updated on SEPTEMBER 14, 2017

Applies to:

Linux OS - Version Oracle Linux 5.0 and later
Linux x86-64
Linux x86

Goal

By default all users can SSH login the system with a valid password/public key.

For certain dedicated Servers, such as FTP Server, E-mail Server, etc. which have amount of user accounts shared authentication with Linux system, disabling non-root users to login through SSH will be a wise choice in this scenario.

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms