Connecting to a Linux Instance from a Windows System Using PuTTY
Published May 14, 2024, 6:03 a.m. by cloudblog
SSH private key files generated by Oracle Cloud Infrastructure are not compatible with PuTTY. If you use a private key file that was generated during the instance creation process, you must convert the file to a .ppk file before you can use it with PuTTY to connect to the instance.
If you changed the file permissions on the key to connect from a Windows system using OpenSSH, then the key will not work with a PuTTY connection. Use OpenSSH to connect instead.
Convert a generated .key private key file:
Open PuTTYgen.
Click Load, and select the private key that was generated when you created the instance.
The extension for the key file is .key.
Click Save private key. Specify a name for the key.
The extension for new private key is .ppk. Click Save.
Note PuTTYgen does not overwrite the .key file but creates an additional file of the same name with the .ppk extension. Connect to the Linux instance using a .ppk private key file: If the instance uses a key pair that you created using PuTTY Key Generator, use the following procedure.
Open PuTTY. In the Category pane, select Session and enter the following: Host Name (or IP address): @ 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 public IP address that you retrieved from the Console Port: 22 Connection type: SSH In the Category pane, expand Window, and then select Translation. In the Remote character set menu, select UTF-8. The default locale setting on Linux-based instances is UTF-8, and this configures PuTTY to use the same locale. In the Category pane, expand Connection, expand SSH, expand Auth, and click Credentials. Click Browse, and then select the .ppk private key file.
Click Open to start the session. If this is the first time connecting to the instance, then you might receive a message that the server's host key is not cached in the registry. Click Yes to continue the connection. Type exit at the shell prompt to end the session. If the connection fails and you are not behind a proxy, then ensure that Proxy type in the PuTTY configuration is set to None. If you are behind a proxy, then select the proxy type and enter the proxy host name and port number. See also Update PuTTY tool for other PuTTY issues.
Similar posts
There are no similar posts yet.0 comments
There are no comments.