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
for example:
-
Windows
In progress, if you are struggling to SSH into your instance and you are on Window please try the Web Console or get in touch
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 ~/.ssh/config
file.
Host MyInstance HostName [HOST] StrictHostKeyChecking no Port [PORT[ User [USERNAME] IdentityFile [PATH_TO_PRIVATE_KEY]
This would allow you to run something like: ssh MyInstance
to SSH into your instance.
Common Errors
If you have a terminal open for a long time you may see:
client_loop: send disconnect: Connection reset
Host * ServerAliveInterval 40 ServerAliveCountMax 30
Web Console
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.
Click connect.