Skip to main content
1 of 3
Di Nu
  • 21
  • 1
  • 1
  • 3

SSH problems, I keep getting connection refused

Could someone please help me, I am bangging my head over a problem that I jsut dont understand and I am a bit new to Linux.

I dont understand what is wrong with my SSH, I tried every possible solution but I just dont understand, every time I try to connect via SSH using "ssh user@ip" I get this error "ssh: connect to host 192.168.80.131 port 2222:Connection refused".

I check to see if I have my router set up for port forwarding and I guess i do (see pic). [![enter image description here][1]][1] I check if I have my server is set up for port forwarding:

tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp6 0 0 :::22 :::* LISTEN

I also check to see if my firewall is configured:

To Action From

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)

I also have ssh, openssh-client, openssh-server installed on my server.

Please help, I dont know what else to do :( [1]: https://i.sstatic.net/G1Pas.png

Di Nu
  • 21
  • 1
  • 1
  • 3