Connect to an Instance from your computer

A step-by-step guide to connecting to your Instances from your computer through the Internet

Shameel Ahmed

Last Update há 2 meses

Once an Instance is created and running, you can connect to that Instance from the portal or from your computer through the Internet.

There are two ways to connect to an instance:

1. Connect from the Console on the portal using User Id and Password

On the Instance widget, click the Ellipsis button and click Console menu item

This open the Linux console in a browser window as if you are locally logged in. Note that this is not a remote connection session, and therefore allows you to login using the root credentials.

You can use this console to execute any command, to configure the instance, etc.

2. Remote connect using an SSH Key

SSH protocol is the most secure way of connecting to your instances remotely.

Note that remote login without SSH, using the root credentials is prohibited by default for security reasons. 

To connect to an Instance, the following are the prerequisites:

1. A Floating IP has been created and assigned to the Instance. Refer to the Create a Floating IP article for information on how to create Floating IP. Refer to Step 2 of the Create an Instance article for instructions on assigning the Floating IP to the instance.

2. An SSH key has been created and assigned to the Instance. Refer to the Create an SSH Key article for information on how to create an SSH Key and associate it with an Instance.

You can use any SSH client to connect to your instances. Two methods are described here:

2 a. Using Putty

Putty is the easiest and the most intuitive way of remote connecting to your instances. 

1. Run Putty

2. Enter the Floating IP of the Instance

3. On the left-side Tree Menu

    a. Go to Connection -> SSH -> Auth

    b. Click the Browse button next to the Private key file for authentication field

    c. Select the private key file you saved earlier 

4. Click the Open button

Putty shows an alert asking you to accept the server's host key.

1. Click Accept to accept the key and save it in known hosts, so that Putty doesn't show the alert again for the same instance.

2. Click Connect Once to accept it only for the current session.

You are now logged in to the instance from your computer.

2 b. Using ssh command line

For this example, we'll use a PowerShell window running on Windows 10. However, you can connect to any shell and execute the ssh command.

1. Open PowerShell command line window

2. Navigate to the folder where the ssh keys are stored (using the cd command)

3. Run the following code:

Enter yes when prompted to accept the fingerprint.

The connection is successful and you can now execute shell commands in the window as if you are locally logged in.

Was this article helpful?

0 out of 0 liked this article

Still need help? Message Us