The recommended and repeatable approach to access a server using SSH is to use a third party tool, PuTTY.
PuTTY
First download and install PuTTY - https://www.putty.org/ - and then please follow the steps below:
Generate PuTTY private key
- Generate a PuTTYgen compatible key by running puttygen which would have been installed along with PuTTY. Go to Windows Start menu → All Programs → PuTTY→ PuTTYgen.
- Click on the Load button beside 'Load an Existing Private File Key' and then load the training.pem file you should have been given.
- Then click on 'Save private key' and save the file as training.ppk into a folder.
Open Connection in PuTTY
- Run PuTTY - Go to Windows Start menu → All Programs → PuTTY→ PuTTY
- Enter the remote server Host Name or IP address under Session in the following format ubuntu@<ip address>.
- Navigate to Connection > SSH > Auth.
- Click Browse... under Authentication parameters / Private key file for authentication.
- Locate the training.ppk private key you saved above and click Open.
- Finally, click Open again to log into the remote server with key pair authentication