You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How To Create Additional Users on Linux Cloud Instances Running on Oracle Cloud Infrastructure (OCI)

edited Jun 30, 2022 1:56PM in Linux

Linux instances running on OCI can have additional users added to them, with ssh access enabled so the additional users can log in remotely to the instances.

If additional users need to be created on a Linux instance running on OCI, use the following steps:

1) Generate an SSH key pair for the new user, as per the following instructions.

2) Log in to your instance, and create the new user:

$ sudo useradd -c "User information such as name or account information" -d /home/<new_user> -s /bin/bash <new_user>

3) Check the home directory of the new user has been created successfully:

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!