MacOS/Linux using Key Pairs
Connecting via SSH from the Command Line on macOS or Linux using a Key Pair
Prerequisite
An instance created with key pair authentication (see launch instance steps).
The private key file from the key pair.
Instructions
1. Log in to the project
Select a project from the projects management page to enter the project detail page.

2. Go to the Instances page
In the left-hand menu, click COMPUTE > Instances to go to the instance page.

3. Go to the Instance Detail page
Click on the desired instance from the list to enter its detail page.

4. Check the External IP
Note the external IP of the instance and check the SSH settings under Networks & Security Groups.

5. Open the Terminal application
Launch the Terminal program on your macOS or Linux system.

6. Run the SSH command
Enter the following SSH command:
ssh -i /path/to/your/keypair nc-user@INSTANCE_EXTERNAL_IP
Replace /path/to/your/keypair
with the path to your key pair file and INSTANCE_EXTERNAL_IP
with your instance's External IP address.
If you are unable to connect, you may need to set the permissions for your key pair file to "600". You can do this with the following command:
chmod 600 /path/to/your/keypair

Last updated
Was this helpful?