Connect to your Pods with SSH to manage long-running processes and critical tasks.
~/.ssh/id_ed25519.pub
and ~/.ssh/id_ed25519
respectively.
C:\Users\YOUR_USER_ACCOUNT\.ssh\id_ed25519.pub
and C:\Users\YOUR_USER_ACCOUNT\.ssh\id_ed25519
, respectively.SSH_PUBLIC_KEY
environment variable for that Pod.
-i
flag instead.sleep infinity
at the end of your command with this one):
-i
flag instead.root
: Your assigned username for the Pod (typically root
).[POD_IP_ADDRESS]
: The public IP address of your Pod.[SSH_PORT]
: The designated public SSH port for your Pod.[PATH_TO_SSH_KEY]
: The local file path to your private SSH key.SHA256:
) into your Runpod user settings instead of the actual public key (the contents of your id_ed25519.pub
file), authentication will fail.ssh-ed25519
), the key will not be recognized.No such file or directory
error).bad permissions
error).~/.ssh/config
) points to the wrong private key, you will also be prompted for a password. Make sure the IdentityFile
entry in your config file matches the private key that corresponds to the public key you added to your Runpod account.RUNPOD_TCP_PORT_22
environment variable.If you see the message Environment variables RUNPOD_PUBLIC_IP or RUNPOD_TCP_PORT_22 are missing
when running the script, it means one or more of the required environment variables are not set. Please ensure you have met all the necessary requirements described above.