Note that this gives you a bash shell, but it is not true SSH. If you need true SSH, see this blog post.
I'm not going to bore you with a long intro in this one. Here are the goods.
1. Create a key pair (open search on your computer and type term to get access to a terminal)
ssh-keygen -t ed25519
Save it wherever you want and use a strong passphrase
2. Get your public key (you can use the following command if you used the defaults)
cat ~/.ssh/id_ed25519.pub
3. Copy your SSH key to the server. For RunPod, you can find the menu in your settings in the top right corner.
4. Find your server address. You can find it in the "Connect" menu under your my pods dashboard.
5. Copy the second SSH command (SSH command with private key file) and make sure the path points to the private key you generated in step 1.
6. Open a terminal and run the command that you copied.
Happy Hacking!