I am attempting to setup my home web server (Ubuntu Server 12.04) such that I can ssh to it from outside of my home network as well as connect to the MySQL databases that I have created on it.
Currently, I know that port 80 is responding correctly to requests. I have Apache running on it, so there are no problems there. However, when I try to SSH to the server, I do not get a response, nor do I get one when I connect to it on port 3306 via MySQL (ERROR 2003, Can't connect to server (10060)). I can use phpmyadmin to connect from my browser, but this is not useful for connecting via PHP.
I have port forwarding set up for ports 80, 22 and 3306, but I do not know what else I should do. Please forgive me if the answer is obvious/simple to obtain - I have been trying to fix this for months.
The output of
netstat -atn | grep [port] for ports 22 and 3306 are as follows:
tcp 0 0 0.0.0:22 0.0.0.0:* Listen tcp 0 0 127.0.0.1:53822 127.0.0.1:40896 Established tcp 0 0 127.0.0.1:40896 127.0.0.1:53822 Established tcp6 0 0 :::22 :::* Listen
tcp 0 0 0.0.0:3306 0.0.0.0:* Listen