SSH from linux

 

  1. Connecting to a Linux Instance

    You connect to a Linux instance using SSH.

    To connect to a Linux instance from a Unix-style system
    1. Use the following command to set the file permissions so that only you can read the file:

  2. chmod 400 <private_key_file>

    <private_key_file> is the full path and name of the file that contains the private key associated with the instance you want to access.

  3. Use the following SSH command to access the instance.

  4. Note

    Copy the following example to ensure the correct characters are used. If the wrong character is used in ssh -i, a Could not resolve hostname ...: No such host is known. error might occur.
    ssh -i <private_key_file> <username>@<public-ip-address>

    <private_key_file> is the full path and name of the file that contains the private key associated with the instance you want to access.

    <username> 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.

    <public-ip-address> is your instance IP address that you retrieved from the Console.

Popular posts from this blog