SSH for beginners

If you’re here struggling to get SSH to work to an AWS instance (or anything else using a key file), keep reading. Basically, the OS handles it for you…that’s why there are no settings inside Cursor (or prob VS Code for that matter)

Find that key file (the private one) (probably .pem file) and execute in terminal:

ssh-add <key file name>

That’s it! When you start a new session in Cursor and choose “SSH”, make sure you put your user name into your address, like so (ubuntu in this case):
ubuntu@ec2-3-21-92-154.us-east-2.compute.amazonaws.com

2 Likes