How to access an instance via SSH.
There are two ways of SSH'ing into your instance, via a web SSH console or directly through an SSH client on your computer. Once you are logged in, both methods behave the same.
Direct SSH Access
To SSH in you will need the following information:
- Host, this can be retrieved from the component settings for the instance, and is the part before the ':'
- Port, this can be retrieved from the component settings for the instance, and is the part after the ':'
- Username, this can be retrieved from the component settings for the instance.
- Private SSH key, this will be on your computer.
Depending on your OS the command to SSH in will be slightly different.
Linux / Mac
ssh -p [PORT] -i [PATH TO PRIVATE SSH KEY] [USERNAME]@[HOST]
ssh -p 41111 -i ~/.ssh/mdoq_id_rsa firstname.lastname@example.org
If you are using a *nix based environment and are SSHing into a particular instance quite regularly you may wish to add the following to your
Host MyInstance HostName [HOST] StrictHostKeyChecking no Port [PORT[ User [USERNAME] IdentityFile [PATH_TO_PRIVATE_KEY]
This would allow you to run something like:
ssh MyInstanceto SSH into your instance.
If you have a terminal open for a long time you may see:
client_loop: send disconnect: Connection reset
Host * ServerAliveInterval 40 ServerAliveCountMax 30
To SSH in using the web console you will need the private part of your key.
Once the instance is ready select "Support" > "Web SSH"
This will open a new tab with the web console.
Simply add your SSH key to the "Private Key" file upload.