Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
Oracle Linux - How to Allow new users or existing user login via SSH
Applies to:
Oracle Linux 7 to Oracle Linux 9
Linux x86_64 on Oracle Public Cloud
Goal:
This document is intended to provide steps to allow new users or existing users(besides the default OPC user) login the instance via SSH using ssh-keys
Solution:
To allow new users log in to the instance with SSH-Keys, please follow the steps below:
- Create a new user (if needed):
$ sudo su - #useradd -m -c "This is a Test User" test #usermode -aG wheel test <-- wheel group will allow this particular user to use sudo (this step can be skipped if no needed) #passwd test
1