Skip to main content
Added further elaboration.
Source Link
igal
  • 10.2k
  • 4
  • 45
  • 60

According to your problem statement, you get the following error:

ssh: connect to host 192.168.80.131 port 2222:Connection refused

This suggests that you're trying to connect to the server on port 2222, e.g. that you're using a command like the following one:

ssh -p 2222 192.168.80.131

You also posted the following list of firewall rules:

20 ALLOW Anywhere
22 ALLOW Anywhere
80 ALLOW Anywhere
23 ALLOW Anywhere
8080 ALLOW Anywhere
20 (v6) ALLOW Anywhere (v6)
22 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
23 (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)

It looks like port 2222 is missing from this list. Try connecting on

You also posted a screen-shot of what appears to be your router's administrative GUI which shows a port 22 or try adding an ALLOW rule-forwarding configuration page which included SSH rules for both port 22 and port 2222. You haven't included enough information for me to determine exactly what your network looks like, but it appears that you'd like to connect to a host on one of these two ports.

Two obvious next-steps come to mind:

  1. Try connecting on port 22, e.g. ssh 198.168.80.131, or

  2. Try adding an ALLOW rule for port 2222 (via your router's administrative GUI) before trying to connect on port 2222 again.

According to your problem statement, you get the following error:

ssh: connect to host 192.168.80.131 port 2222:Connection refused

This suggests that you're trying to connect to the server on port 2222. You also posted the following list of firewall rules:

20 ALLOW Anywhere
22 ALLOW Anywhere
80 ALLOW Anywhere
23 ALLOW Anywhere
8080 ALLOW Anywhere
20 (v6) ALLOW Anywhere (v6)
22 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
23 (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)

It looks like port 2222 is missing from this list. Try connecting on port 22 or try adding an ALLOW rule for port 2222.

According to your problem statement, you get the following error:

ssh: connect to host 192.168.80.131 port 2222:Connection refused

This suggests that you're trying to connect to the server on port 2222, e.g. that you're using a command like the following one:

ssh -p 2222 192.168.80.131

You also posted the following list of firewall rules:

20 ALLOW Anywhere
22 ALLOW Anywhere
80 ALLOW Anywhere
23 ALLOW Anywhere
8080 ALLOW Anywhere
20 (v6) ALLOW Anywhere (v6)
22 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
23 (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)

It looks like port 2222 is missing from this list.

You also posted a screen-shot of what appears to be your router's administrative GUI which shows a port-forwarding configuration page which included SSH rules for both port 22 and port 2222. You haven't included enough information for me to determine exactly what your network looks like, but it appears that you'd like to connect to a host on one of these two ports.

Two obvious next-steps come to mind:

  1. Try connecting on port 22, e.g. ssh 198.168.80.131, or

  2. Try adding an ALLOW rule for port 2222 (via your router's administrative GUI) before trying to connect on port 2222 again.

Source Link
igal
  • 10.2k
  • 4
  • 45
  • 60

According to your problem statement, you get the following error:

ssh: connect to host 192.168.80.131 port 2222:Connection refused

This suggests that you're trying to connect to the server on port 2222. You also posted the following list of firewall rules:

20 ALLOW Anywhere
22 ALLOW Anywhere
80 ALLOW Anywhere
23 ALLOW Anywhere
8080 ALLOW Anywhere
20 (v6) ALLOW Anywhere (v6)
22 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
23 (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)

It looks like port 2222 is missing from this list. Try connecting on port 22 or try adding an ALLOW rule for port 2222.