
Securely Access Your RunPod Instance with SSH
SSH (Secure Shell) is a powerful, secure networking protocol that allows you to access, control, and transfer data between your local machine and a remote server. In this guide, we’ll show you how to set up SSH access to your RunPod instance quickly and easily. By the end, you’ll have a solid understanding of how to manage your RunPod data securely and efficiently.
Prerequisites
- A RunPod account
- Access to a terminal or command prompt
Step 1: Generate SSH Keys
First, you’ll need to generate a pair of SSH keys on your local machine. This process creates two cryptographic keys—a public key and a private key. You’ll share the public key with RunPod to allow secure access, while you’ll keep the private key confidential.
- Open a terminal or command prompt on your local machine.
- Run the following command to generate a new SSH key pair:
ssh-keygen -t ed25519
- Press Enter to accept the default file location and name for your new SSH key pair (e.g.,
~/.ssh/id_ed25519). - Next, enter a secure passphrase to protect your private key.
Step 2: Upload SSH Public Key to RunPod
Now that you’ve generated your SSH key pair, it’s time to share the public key with RunPod. Log in to your RunPod account and follow these steps:
- Navigate to the SSH Keys section of your account settings.
- Click the Add SSH Key button.
- Enter a name for your SSH key.
- Copy the contents of your
~/.ssh/id_ed25519.pubfile (or the equivalent file name you chose during key generation) and paste it into the Public Key field. - Click Add to upload your SSH public key to RunPod.
Step 3: Connect to Your RunPod Instance via SSH
With your SSH key uploaded, you’re ready to connect to your RunPod instance securely. Open a terminal or command prompt and run the following command:
ssh -i ~/.ssh/id_ed25519 username@runpod.io
Replace username with your RunPod account username and runpod.io with the actual RunPod domain. If you set up a custom domain, use that instead. You’ll be prompted to enter the passphrase you created when generating your SSH key pair. Once authenticated, you’ll have secure access to your RunPod instance!
Conclusion
Setting up SSH access to your RunPod instance is a crucial step in securing and efficiently managing your data. Now that you’ve mastered SSH, learn more about RunPod’s powerful features and start improving your data workflows today.
For recommended tools, see Recommended tool
Disclosure: We earn commissions if you purchase through our links. We only recommend tools tested in our AI workflows.

0 Comments