Connecting to a OCI Linux Instance Using OpenSSH
Published May 14, 2024, 6:06 a.m. by cloudblog
Connecting to a Linux Instance from a Windows System Using OpenSSH
--------------------------------------------------------------------------------------------------------------------
If the instance uses a key pair that was generated by Oracle Cloud Infrastructure, then use the following procedure. If this is the first time you are using this key pair, then you must set the file permissions so that only you can read the file.
Do the following: In Windows Explorer,
navigate to the private key file, right-click the file, and then click Properties.
On the Security tab, click Advanced. On the Permissions tab, for Permission entries, under Principal, ensure that your user account is listed. Click Disable Inheritance, and then select Convert inherited permissions into explicit permissions on this object. For Permission entries, select each permission entry that is not your user account and click Remove. Ensure that the access permission for your user account is Full control.
Save your changes. To connect to the instance, open Windows PowerShell and run the following command: 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 .key 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 OCI Linux Instance Using SSH
0 comments
There are no comments.