Not able to ssh via "Overexposed SSH"

I am able to login with the basic SSH but Over exposed asks me for password. This is not working
⬢ ❯ ssh root@xxx -p 13776 -i ~/.ssh/id_ed25519
root@xxx's password:
Permission denied, please try again.
root@xxx's password:
⬢ ❯ ssh root@xxx -p 13776 -i ~/.ssh/id_ed25519
root@xxx's password:
Permission denied, please try again.
root@xxx's password:
This works
⬢ ❯ ssh xxx-xxx@ssh.runpod.io -i ~/.ssh/id_ed25519
⬢ ❯ ssh xxx-xxx@ssh.runpod.io -i ~/.ssh/id_ed25519
Solution:
You can use OhMyRunPod
Jump to solution
31 Replies
nerdylive
nerdylive2mo ago
whats over exposed is it an ssh software? i cant find it anywhere It's using Key as authentication
GokulaKrishna
GokulaKrishna2mo ago
I mean Over exposed tcp option in dashboard
No description
nerdylive
nerdylive2mo ago
ohh i get that now
nerdylive
nerdylive2mo ago
Check your ssh did you setup that yet?
No description
GokulaKrishna
GokulaKrishna2mo ago
yes and basic SSH works
nerdylive
nerdylive2mo ago
ohh so you got your keys setup already Hmm what template are you using then?
GokulaKrishna
GokulaKrishna2mo ago
RunPod Pytorch 2.0.1
nerdylive
nerdylive2mo ago
alright let me try it first on my side
digigoblin
digigoblin2mo ago
Do you have more than 1 public key in your profile?
nerdylive
nerdylive2mo ago
even tho their profile has more than 1 key it will still be exported to the container right?
digigoblin
digigoblin2mo ago
No not necessarily
nerdylive
nerdylive2mo ago
Hmm so it will only export only one of them?
digigoblin
digigoblin2mo ago
This is wrong:
digigoblin
digigoblin2mo ago
GitHub
containers/container-template/start.sh at main · runpod/containers
🐳 | Dockerfiles for the RunPod container images used for our official templates. - runpod/containers
nerdylive
nerdylive2mo ago
Ohh yea ic
digigoblin
digigoblin2mo ago
Should be like this to include them all:
if [[ ${PUBLIC_KEY} ]]; then
echo -e "${PUBLIC_KEY}\n" >> ~/.ssh/authorized_keys
fi
if [[ ${PUBLIC_KEY} ]]; then
echo -e "${PUBLIC_KEY}\n" >> ~/.ssh/authorized_keys
fi
Otherwise it includes only one of them
nerdylive
nerdylive2mo ago
I'll put it on feedbacks yeah thank you
GokulaKrishna
GokulaKrishna2mo ago
Do you have more than 1 public key in your profile?
you mean in my SSH agent?
digigoblin
digigoblin2mo ago
In your RunPod profile on the runpod web console, how many ssh public keys did you save there?
nerdylive
nerdylive2mo ago
In here*
GokulaKrishna
GokulaKrishna2mo ago
I have only one
No description
digigoblin
digigoblin2mo ago
Did you add it here before or after you created the pod?
nerdylive
nerdylive2mo ago
Oh it works for me: 1. i ran ssh-keygen -t ed25519 -C "your_email@example.com"( generates using default settings ) 2. then added it to: https://docs.runpod.io/assets/images/c340553-image-5834fe29a2179e6bb7fb75f5aa664037.png 3. created a new pod 4. press connect then use that line that you pointed at for connecting via TCP, it works!
nerdylive
nerdylive2mo ago
But when i tried to add it to the ssh public keys ( web ) after i created my pods, it isnt updated, so you can create new one, or rerun this
echo "$PUBLIC_KEY\n" >> ~/.ssh/authorized_keys
echo "$PUBLIC_KEY\n" >> ~/.ssh/authorized_keys
with $PUBLIC_KEY replaced with your ssh public key's content as text
GokulaKrishna
GokulaKrishna2mo ago
before the creation
nerdylive
nerdylive2mo ago
But if the normal ssh only works, the tcp should work too. maybe you should contact support with your pod id
Solution
digigoblin
digigoblin2mo ago
You can use OhMyRunPod
digigoblin
digigoblin2mo ago
pip install OhMyRunPod
OhMyRunPod --setup_ssh
pip install OhMyRunPod
OhMyRunPod --setup_ssh
nerdylive
nerdylive2mo ago
how does it works? it outputs new keys?
GokulaKrishna
GokulaKrishna2mo ago
i ran this command and it generated password. i use that to login
nerdylive
nerdylive2mo ago
Oh alright thanks