Skip to main content

Connecting to a Linux Instance

You can connect to Linux Instances via SSH sessions using passwords (less secure) orย SSH key pairs (most secure)

Connect from a Windows Machineโ€‹

To connect to your Linux Instance from a Windows machine, you will need to use a small application called PuTTy, an SSH client.

  1. Download and install PuTTy.
  2. Launch PuTTy on your computer.
  3. In the Host Name (or IP Address) field, enter your Instanceโ€™s IP address.
    Putty
  4. Navigate to Connection > SSH > Auth. Putty
  5. Click the Browse button and select the previously generated private key file.
  6. To open a connection to the instance, click Open at the bottom of the screen. PuTTY will prompt you to allow the connection to the host.
  7. Click OK to confirm, and the terminal window will appear.
  8. Enter the default root username (typically ubuntu for Ubuntu images and root for other Linux OS images) and press Enter to authenticate using your SSH key.

You are now connected to your Instance.

Connect from a macOS or Linux Machineโ€‹

  1. Open any terminal program.
  2. Enter the following command into the terminal.
    important

    Make sure you replace <your_private_key>ย with the filename of your private key;ย <your_instance_ip>ย with the IP address of your Instance; andย <username>ย with the default root user name (typicallyย ubuntuย for Ubuntu images andย rootย for all other Linux OS images).

    ssh -i ~/.ssh/<your_private_key> <username>@<your_instance_ip>
  3. If/when prompted, allow connection to the host by typingย yes, then pressย Enter.
    The authenticity of host 'myhost.ext (212.47.206.34)' can't be established.  
    RSA key fingerprint is 4f:ba:65:cf:14:64:a7:1e:b6:07:7c:00:71:95:21:fa.
    Are you sure you want to continue connecting (yes/no)?

    You are now connected to your Instance.