Unable to SSH into a pod via open TCP port

Hi! I'm having a problem SSH-ing into a running pod using the open TCP port. While the proxied SSH works fine, the TCP gives me this:
$ ssh root@69.30.85.137 -vvvp 22058 -i ~/.ssh/id_runpod
OpenSSH_9.9p1 Ubuntu-3ubuntu3.1, OpenSSL 3.4.1 11 Feb 2025
debug1: Reading configuration data /home/zinigor/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 19: Including file /etc/ssh/ssh_config.d/20-systemd-ssh-proxy.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/20-systemd-ssh-proxy.conf
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 69.30.85.137 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/zinigor/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/zinigor/.ssh/known_hosts2'
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to 69.30.85.137 [69.30.85.137] port 22058.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: connect to address 69.30.85.137 port 22058: Connection refused
ssh: connect to host 69.30.85.137 port 22058: Connection refused
$ ssh root@69.30.85.137 -vvvp 22058 -i ~/.ssh/id_runpod
OpenSSH_9.9p1 Ubuntu-3ubuntu3.1, OpenSSL 3.4.1 11 Feb 2025
debug1: Reading configuration data /home/zinigor/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug3: /etc/ssh/ssh_config line 19: Including file /etc/ssh/ssh_config.d/20-systemd-ssh-proxy.conf depth 0
debug1: Reading configuration data /etc/ssh/ssh_config.d/20-systemd-ssh-proxy.conf
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolve_canonicalize: hostname 69.30.85.137 is address
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/zinigor/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/zinigor/.ssh/known_hosts2'
debug3: channel_clear_timeouts: clearing
debug3: ssh_connect_direct: entering
debug1: Connecting to 69.30.85.137 [69.30.85.137] port 22058.
debug3: set_sock_tos: set socket 3 IP_TOS 0x10
debug1: connect to address 69.30.85.137 port 22058: Connection refused
ssh: connect to host 69.30.85.137 port 22058: Connection refused
I have no problem connecting using the same key using the proxy:
$ ssh 6rs9mv91f1y5r0-6441185a@ssh.runpod.io -i ~/.ssh/id_runpod

-- RUNPOD.IO --
Enjoy your Pod #6rs9mv91f1y5r0 ^_^

root@8a5468fcb25f:/workspace#
$ ssh 6rs9mv91f1y5r0-6441185a@ssh.runpod.io -i ~/.ssh/id_runpod

-- RUNPOD.IO --
Enjoy your Pod #6rs9mv91f1y5r0 ^_^

root@8a5468fcb25f:/workspace#
Solution:
Poorly made template
No description
Jump to solution
6 Replies
Igor Zinovyev[MTSK]
I have already terminated the pod to work on the image some more, but I'd appreciate any pointers here
Henky!!
Henky!!5mo ago
Which template and was the ssh key setup prior to launching?
Igor Zinovyev[MTSK]
The template ID is: bhunaqgues I have relaunched another pod, and the same thing is happening And yes, the SSH key is there before launch, it works for the proxied SSH variant I have terminated this pod too, sorry I'm not using them all the time, so I don't want them wasting my balance.
Solution
Henky!!
Henky!!5mo ago
Poorly made template
No description
Henky!!
Henky!!5mo ago
It doesn't ship an SSH server So its not runpod thats failing, the template both has a broken file browser and broken ssh
Igor Zinovyev[MTSK]
Ah, good to know, thanks! I'll fix that, it's my first attempt at making one.

Did you find this page helpful?