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 22:Connection refused
I check to see if I have my router set up for port forwarding and I guess I do:
I checked if I have my server 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 checked 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.
Also I would like to mention that the client from where I am connecting to the server is connected to the router via LAN and the server is connected to the router via Wi-FI.
ssh -p 2222 192.168.80.131
.