How To Create Additional Users on Linux Cloud Instances Running on Oracle Cloud Infrastructure (OCI)
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: