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
You can try my package OhMyRunPod
I tried that but still didn’t work
btw remove full startup command
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 workcan you show me output of --setup ssh?
btw are you sure you connect to correct port?
yes i copied the command from runpod web
nevermind it worked now - I logged off the machine - restarted it and it worked (: ! Thanks