SSH Connection Refused

I'm using template runpod/pytorch:2.2.0-py3.10-cuda12.1.1-devel-ubuntu22.04 with 6xH100s. I added my public key to bash -c 'apt update;DEBIAN_FRONTEND=noninteractive apt-get install openssh-server -y;mkdir -p ~/.ssh;cd $_;chmod 700 ~/.ssh;echo "$PUBLIC_KEY" >> authorized_keys;chmod 700 authorized_keys;service ssh start;sleep infinity' (of course replaced $PUBLIC_KEY with mine) and logged into the machine using the web terminal and checked that the authentication_key is correct. Yet I get connection refused when trying to connect. This is not the first runpod I set up (I did A100s and A40s before and both worked fine but first time for H100s). Any guidance on how to solve this issue?
9 Replies
Madiator2011
Madiator20117mo ago
You can try my package OhMyRunPod
Hespresso
Hespresso7mo ago
I tried that but still didn’t work
Madiator2011
Madiator20117mo ago
btw remove full startup command
Hespresso
Hespresso7mo ago
Oh let me try again then. One second. @Papa Madiator it asked for a password I did cat workspace/root_password.txt used it and it didn't work
Madiator2011
Madiator20117mo ago
can you show me output of --setup ssh?
Hespresso
Hespresso7mo ago
No description
Madiator2011
Madiator20117mo ago
btw are you sure you connect to correct port?
Hespresso
Hespresso7mo ago
yes i copied the command from runpod web nevermind it worked now - I logged off the machine - restarted it and it worked (: ! Thanks
Want results from more Discord servers?
Add your server