Skip to main content

Connect to instance through SSH.

You can connect to using the Secure Shell Protocol (SSH), which provides a secure channel over an unsecured network.

Checking for existing SSH keys

Before you generate an SSH key, you can check to see if you have any existing SSH keys. Try the below steps.

  1. Open Terminal/Poweshell
  2. Enter cat ~/.ssh/ to see if existing SSH keys are present.
$ cat ~/.ssh/
# Should output your public key.
  1. Copy the output of the above command and paste here.

If you receive an error that ~/.ssh/ doesn't exist, you do not have an existing SSH key pair in the default location. You can create a new SSH key pair by following the next steps.

Creating SSH keys

Generate an SSH key pair using the below command from your system terminal or powershell.

ssh-keygen -t rsa -b 4096

If you have choosen a custom location to store your ssh key, then do not forget to add the location as -i path while connecting to instances.

ssh -i /path/to/your/key/id_rsa -P port_number domain_name

Interested in learning more about SSH, check out the amazing docs in GitHub.

Adding SSH keys to JarvisLabs

The API keys section shows all the SSH keys you have in your account. You can add/delete the SSH keys from here.