R
RunPod7mo 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
digigoblin7mo ago
Are you connecting to the correct port?
Nucleus
NucleusOP7mo ago
yes.. copy pasted from the dialog
digigoblin
digigoblin7mo 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
Madiator20117mo ago
or the ssh server is not running on template you are using
digigoblin
digigoblin7mo ago
Oh yes good point
Madiator2011
Madiator20117mo ago
some community servers might not have ssh server preinstalled
Nucleus
NucleusOP7mo 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
Madiator20117mo ago
pod id?
Nucleus
NucleusOP7mo ago
i tried multiple pods and couldn't connect, but the pod id here: koplimu3sq54is thanks
Madiator2011
Madiator20117mo ago
and what command you get and error?
Nucleus
NucleusOP7mo ago
here. first cmd works 2nd doesn't
digigoblin
digigoblin7mo ago
That looks like port forwarding is broken like my initial gut instinct.
Madiator2011
Madiator20117mo ago
try use normal termian and install pip install OhMyRunPod then run OhMyRunPod --setup_ssh
Nucleus
NucleusOP7mo ago
done but still can't connect
Madiator2011
Madiator20117mo ago
what was output of command
Nucleus
NucleusOP7mo 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
Madiator20117mo 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
NucleusOP7mo ago
yeah that did it lol
digigoblin
digigoblin7mo ago
Thats odd, why would there be no host keys? something wrong with the template?
Madiator2011
Madiator20117mo ago
something could fail when injecting ssh keys
Nucleus
NucleusOP7mo 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
Madiator20117mo ago
np
Aditya Sharma
Aditya Sharma5mo 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
nerdylive5mo 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