Zend certified PHP/Magento developer

Cannot ssh into self hosted server from public IP

I set up a server to self host and cannot ssh into it, and I’m having trouble debugging the issue. This is the error I get when I run ssh with verbose logging:

OpenSSH_9.4p1, OpenSSL 3.1.2 1 Aug 2023
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 2: include /etc/ssh/ssh_config.d/*.conf matched no files
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/insomnia/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/insomnia/.ssh/known_hosts2'
debug2: resolving "databunker.monster" port 22
debug3: resolve_host: lookup databunker.monster:22
debug3: ssh_connect_direct: entering
debug1: Connecting to databunker.monster [96.245.8.33] port 22.
debug3: set_sock_tos: set socket 3 IP_TOS 0x48
debug1: connect to address 96.245.8.33 port 22: Connection timed out
ssh: connect to host databunker.monster port 22: Connection timed out

I only get this issue when I try sshing into either the domain or the public IP. When I use the private IP on my local network, I can ssh into it without issue.

I have a Verizon CR1000B router and have set the following in my network settings:

  • Under Advanced > Security & Firewall > Port Forwarding I have original port=22, protocol=TCP, Fwd to port=22, and Schedule=Always
  • Under Advanced > Security & Firewall > Port Forwarding Rules I have Protocol=TCP, Source Ports=Any, Destination Ports=Single with 22 set as the port.

I don’t have any iptables rules set on the server. Also worth mentioning is that I have only tried sshing into the server from computers that are connected to the internet through the same network.