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 [email protected] -i ~/.ssh/id_ed25519
⬢ ❯ ssh [email protected] -i ~/.ssh/id_ed25519
Solution:
You can use OhMyRunPod
Jump to solution
31 Replies
nerdylive
nerdylive6mo ago
whats over exposed is it an ssh software? i cant find it anywhere It's using Key as authentication
GokulaKrishna
GokulaKrishnaOP6mo ago
I mean Over exposed tcp option in dashboard
No description
nerdylive
nerdylive6mo ago
ohh i get that now
nerdylive
nerdylive6mo ago
Check your ssh did you setup that yet?
No description
GokulaKrishna
GokulaKrishnaOP6mo ago
yes and basic SSH works
nerdylive
nerdylive6mo ago
ohh so you got your keys setup already Hmm what template are you using then?
GokulaKrishna
GokulaKrishnaOP6mo ago
RunPod Pytorch 2.0.1
nerdylive
nerdylive6mo ago
alright let me try it first on my side
digigoblin
digigoblin6mo ago
Do you have more than 1 public key in your profile?
nerdylive
nerdylive6mo ago
even tho their profile has more than 1 key it will still be exported to the container right?
digigoblin
digigoblin6mo ago
No not necessarily
nerdylive
nerdylive6mo ago
Hmm so it will only export only one of them?
digigoblin
digigoblin6mo ago
This is wrong:
digigoblin
digigoblin6mo 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
nerdylive6mo ago
Ohh yea ic
digigoblin
digigoblin6mo 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
nerdylive6mo ago
I'll put it on feedbacks yeah thank you
GokulaKrishna
GokulaKrishnaOP6mo ago
Do you have more than 1 public key in your profile?
you mean in my SSH agent?
digigoblin
digigoblin6mo ago
In your RunPod profile on the runpod web console, how many ssh public keys did you save there?
nerdylive
nerdylive6mo ago
In here*
GokulaKrishna
GokulaKrishnaOP6mo ago
I have only one
No description
digigoblin
digigoblin6mo ago
Did you add it here before or after you created the pod?
nerdylive
nerdylive6mo ago
Oh it works for me: 1. i ran ssh-keygen -t ed25519 -C "[email protected]"( 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
nerdylive6mo 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
GokulaKrishnaOP6mo ago
before the creation
nerdylive
nerdylive6mo ago
But if the normal ssh only works, the tcp should work too. maybe you should contact support with your pod id
Solution
digigoblin
digigoblin6mo ago
You can use OhMyRunPod
digigoblin
digigoblin6mo ago
pip install OhMyRunPod
OhMyRunPod --setup_ssh
pip install OhMyRunPod
OhMyRunPod --setup_ssh
nerdylive
nerdylive6mo ago
how does it works? it outputs new keys?
GokulaKrishna
GokulaKrishnaOP6mo ago
i ran this command and it generated password. i use that to login
nerdylive
nerdylive6mo ago
Oh alright thanks
Want results from more Discord servers?
Add your server