R
RunPod8mo ago
Nucleus

SSH connection issue

anyone else have problems connecting to pods with SSH currently via TCP? i'm getting connection refused every time. connecting with ssh.runpod.io works though. i never had this issue before and tried via different networks already
24 Replies
digigoblin
digigoblin8mo ago
Are you connecting to the correct port?
Nucleus
NucleusOP8mo ago
yes.. copy pasted from the dialog
digigoblin
digigoblin8mo ago
Port forwarding on the host machine must be broken, if you post the pod id, maybe @Papa Madiator can get someone to look into it.
Madiator2011
Madiator20118mo ago
or the ssh server is not running on template you are using
digigoblin
digigoblin8mo ago
Oh yes good point
Madiator2011
Madiator20118mo ago
some community servers might not have ssh server preinstalled
Nucleus
NucleusOP8mo ago
no it's the default pytorch template that i've always been using so ssh is installed. again connecting via the proxy works but not via IP directly
Madiator2011
Madiator20118mo ago
pod id?
Nucleus
NucleusOP8mo ago
i tried multiple pods and couldn't connect, but the pod id here: koplimu3sq54is thanks
Madiator2011
Madiator20118mo ago
and what command you get and error?
Nucleus
NucleusOP8mo ago
here. first cmd works 2nd doesn't
digigoblin
digigoblin8mo ago
That looks like port forwarding is broken like my initial gut instinct.
Madiator2011
Madiator20118mo ago
try use normal termian and install pip install OhMyRunPod then run OhMyRunPod --setup_ssh
Nucleus
NucleusOP8mo ago
done but still can't connect
Madiator2011
Madiator20118mo ago
what was output of command
Nucleus
NucleusOP8mo ago
i'd use the basic terminal but VSCode remote only works with the IP
root@bf508f893050:/# OhMyRunPod --setup-ssh
Detecting Linux Distribution...
OS Detected: DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
SSH Server is already installed.
Configuring SSH to allow root login with a password...
sshd: no hostkeys available -- exiting.
SSH Configuration Updated.
Generating a secure random password for root...
Root password generated and saved in /workspace/root_password.txt
Checking environment variables...
Environment variables are set.
Creating connection script for Windows...
Windows connection script created in /workspace.
Creating connection script for Linux/Mac...
Linux/Mac connection script created in /workspace.
Setup Completed Successfully!
root@bf508f893050:/# OhMyRunPod --setup-ssh
Detecting Linux Distribution...
OS Detected: DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.3 LTS"
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
SSH Server is already installed.
Configuring SSH to allow root login with a password...
sshd: no hostkeys available -- exiting.
SSH Configuration Updated.
Generating a secure random password for root...
Root password generated and saved in /workspace/root_password.txt
Checking environment variables...
Environment variables are set.
Creating connection script for Windows...
Windows connection script created in /workspace.
Creating connection script for Linux/Mac...
Linux/Mac connection script created in /workspace.
Setup Completed Successfully!
most likely yeah. i can ping the machine but that's it
Madiator2011
Madiator20118mo ago
oh I see ssh service not starts cause no keys are there run this command on pod
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
then
service ssh start
service ssh start
@Nucleus that should fix ssh
Nucleus
NucleusOP8mo ago
yeah that did it lol
digigoblin
digigoblin8mo ago
Thats odd, why would there be no host keys? something wrong with the template?
Madiator2011
Madiator20118mo ago
something could fail when injecting ssh keys
Nucleus
NucleusOP8mo ago
yeah this is weird. i've used this same template multiple times and this is the first time it's breaking okay i just made a new pod with runpod/pytorch:2.1.0-py3.10-cuda11.8.0-devel-ubuntu22.04 and it works straight away the broken one may be runpod/pytorch:2.0.1-py3.10-cuda11.8.0-devel-ubuntu22.04 thx anyway
Madiator2011
Madiator20118mo ago
np
Aditya Sharma
Aditya Sharma6mo ago
Hi, I am getting an issue where I have registered my public key with the setting console but still the SSH terminal asks me for a password while trying to SSH, which is not the same as the password for my public private key pair anyone has any idea what is going on? What is the default password for the pods? for SSH
nerdylive
nerdylive6mo ago
There is no default password for pod, but if you're interested in using generated password try the package ... pip install OhMyRunPod OhMyRunPod --setup-ssh btw key only works with runpod templates
Want results from more Discord servers?
Add your server