- Open an SSH client. (find out how to connect using PuTTY)
- Locate your private key file (YourKeyfile.pem). The wizard automatically detects the key you used to launch the instance.
- Your key must not be publicly viewable for SSH to work. Use this command if needed:chmod 400 YourKeyFile.pem
- Connect to your server using:
Example:
ssh -i "YourKeyfile.pem" root@yourmainip