Can't connect via ssh: Runpod asking for password

When I try to connect via ssh [email protected] -p 17455 -i ~/.ssh/id_ed25519 I get asked for a password. Following the support page I tried generating a new key, but didn't have any luck. Specifically, here's what I tried: Create a new key: ssh-keygen -t ed25519 -C "[email protected]" Cat the public key and add it to my runpod settings: cat ~/.ssh/id_ed25519.pub Connect via this command: ssh [email protected] -p 17455 -i ~/.ssh/id_ed25519 I tried troubleshooting using the instructions here, but nothing helped. Any support would be appreciated!
Solution:
Resolved! The issue is that I had to deploy my pod AFTER adding the new key.
Jump to solution
6 Replies
Solution
lberglund
lberglund5w ago
Resolved! The issue is that I had to deploy my pod AFTER adding the new key.
zoro00557
zoro005572w ago
I have an issue here what to do if I need to add another ssh key after the deployment.
nerdylive
nerdylive2w ago
restart the pod, but beware that you will lose your data unless you saved it in /workspace or wherever you mounted your volume at
zoro00557
zoro005572w ago
So restarting the pod is the only solution right
nerdylive
nerdylive2w ago
yep or create a new one
yhlong00000
yhlong000002w ago
you can also manually add your ssh public key to the ~/.ssh/authorized_keys file, so you don't have to restart the pod.
Want results from more Discord servers?
Add your server