TheKoguryo's Tech Blog

 Version 2024.05.05

Warning

This content has been generated by machine translation. The translations are automated and have not undergone human review or validation.

3.5.1 Access from Linux, Mac

Keys generated by ssh-keygen in the Privacy Enhanced Mail (PEM) file format are ready for Linux and Mac. The .ppk generated by the PuTTY Key Generator is used by the converter to convert to PEM format.

Connecting a Linux instance from a UNIX-style system

  1. Change Personal Key Permissions

    $ chmod 400 <private_key>
    
    • <private_key>: Private key matching public key registered in Linux instance
  2. Connect via SSH command

    $ ssh –i <private_key> <username>@<public-ip-address>
    
    • <private_key>: Private key matching public key registered in Linux instance
    • : The default user for the instance.
    • : Public IP of the instance. This can be found in the OCI Console.
Default Connection User
OS ImageDefault User Name
Oracle Linux, CentOSopc
ubuntuubuntu
Access Example - UNIX STYLE SYSTEM
ubuntu@NOTEBOOK-WORK:~/.ssh$ ssh -i privateKey opc@146.56.171.40
The authenticity of host '146.56.171.40 (146.56.171.40)' can't be established.
ECDSA key fingerprint is SHA256:NWD7RMc4Mb1azKCAN24f6hNUh55YKAygfB97WS9EpP0.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '146.56.171.40' (ECDSA) to the list of known hosts.
[opc@examplelinuxinstance ~]$


As an individual, this article was written with my personal time. There may be errors in the content of the article, and the opinions in the article are personal opinions.

Last updated on 10 Jan 2022