R
Runpod3mo ago
Euticus

Cannot reconnect with new SSH

Hi I was SSH'd into a runpod instance but now I can't get it to connect. I've gone through the troubleshooting and did the walk through like 3 times. I also tried chatting with ai-helper and still couldn't get it.
6 Replies
Dj
Dj3mo ago
If you've restarted your Pod the port for you to SSH to will be different.
Euticus
EuticusOP3mo ago
yes i changed the port in my config
Dj
Dj3mo ago
You don't have to change anything, just expose port 22 and use the connect UI to get the proper command.
Euticus
EuticusOP3mo ago
I thought I was doing that. I don't know how to troubleshoot this my error is root@38.128.232.9: Permission denied (publickey). I ensured my public key is in my settings
Dj
Dj3mo ago
Check your Pod's Environment variables for a PUBLIC_KEY variable thats set to the right value A public key starts with ssh-ed25519 or ssh-rsa, not ------ BEGIN
Henky!!
Henky!!3mo ago
Also make sure your pubkey is modern enough, really old ones like rsa can get rejected

Did you find this page helpful?