Accessing SSH thru the net.
Hey, I'm in the process of installing gentoo linux, and I've been installing it thru ssh the entire time. Now, I want to continue the installation thru ssh, but I can't seem to be able to log into it from outside.
Putting in my internal LAN ip is useless, and using the routers regular ip that shows to the internet doesn't work either. I set port forwarding on the router, but that didn't help either. Anyone have any idea what to do? |
Is your firewall blocking ssh from the internet? Can you still use ssh from inside your LAN? If you are pointing at the router's IP address and have port 22 forwarded to the right LAN IP address, that is good, but there are other places to trip up.
|
My router's firewall is off. I can access ssh from within the network, and I have port 22 forwarding on the proper machine. I don't know about the internal gentoo firewall, though I saw no documentation on it.
What are the other things I should check for this? |
The command iptables -L should show you the local firewall (you may have to be su to use this command). If you don't understand the output, post it and we can take a look. The other place to look would be in your /etc/hosts.deny file. It could be that entries there are causing trouble.
The fact that you can use ssh within your lan really points to either the local firewall or the router as the source of the problem. |
I tried the iptables command, and it seems there's no firewall installed on it since it didn't work.
As for hosts.deny, there was no such file even. There was a hosts file and here's what it said : Code:
127.0.0.1 localhost |
Quote:
If you don't have a hosts.deny, that is OK. However, you might want to run find / -name hosts.deny just to be sure. Again, run this after becoming su so it can scan all the directories. The hosts file you posted is a different beast entirely and it probably won't concern us for this problem. The other thing to do is to try to log in both from within and from outside your LAN and see if any information from ssh shows up in either /var/log/syslog or /var/log/messages |
All times are GMT -5. The time now is 03:04 PM. |