Quote:
Originally posted by alexklant
Not that i know of. Otherwise Ubuntu installs an firewall on default. I can connect to the server from its own via 192.168.0.2 .
Regards, Alex
|
OK, if you can ssh locally to the Ubuntu machine, that narrows down the list of possible problems. They could be:
+ Router is not correctly configured to forward to correct machine and/or port.
+ Connectivity does not exist between Ubuntu and router (test with ping).
+ Ubuntu is blocking port via netfilter. Test:
Code:
$ sudo iptables -nL
Should show the following for no firewall:
Code:
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
+ sshd is not configured to accept traffic from the source you are trying to send from. You could test this by disabling sshd temporarily, and then run
This will start a generic netcat process listening on port 22. If you are able to ssh to your computer, netcat will receive the data being sent and spit it out to the screen (it may look like random garbage, so you might want to redirect it to a file). Also try checking the logs (dmesg) to see if something went wrong.
If you are connecting from a GNU/Linux box, "ssh -v", "ssh -vv" and "ssh -vvv" can spit out more diagnostic info.