Connecting to OCI Linux Instance Using SSH
Published May 14, 2024, 6:08 a.m. by cloudblog
Connecting to a Linux Instance from a Unix-Style System
-------------------------------------------------------------------------------------------
Use the following command to set the file permissions so that only you can read the
file: chmod 400 is the full path and name of the file that contains the private key associated with the instance you want to access. Use the following SSH command to access the instance.
Copy the following example to ensure the correct characters are used.
If the wrong character is used in ssh -i, an error such as Could not resolve hostname ...:
No such host is known might occur. ssh -i @ is the full path and name of the file that contains the private key associated with the instance you want to access. is the default username for the instance.
For Oracle Linux and CentOS images, the default username is opc.
For Ubuntu images, the default username is ubuntu. is the instance's IP address that you retrieved from the Console. If you're connecting to this instance for the first time, you need to accept the fingerprint of the key. To accept the fingerprint, type yes and press Enter. Type exit at the shell prompt to end the session.
Similar posts
Connecting to a OCI Linux Instance Using OpenSSH
0 comments
There are no comments.