Problems with SSH connections
I don't know how to explain this, but I seem to be having some problems with ssh connectivity. My Gentoo Linux-box has ssh enabled and I am able to connect to it with my other WinXP computer and also a couple of friends are able too (all of us have the same ISP so our IP's start with 212.149.*.*).
The problem is, that I can't connect to it from many other computers like from school or work etc. I wonder if there is somekind of a config file that only allows certain IP's or then the problem is somewhere else. I haven't found any help from other forums so I hope you guys could help :) Thanks in advance. |
First check ur /etc/hosts.allow and /etc/hosts.deny ->ensure sshd is not in here
what i think is ur sch or work might have a firewall to stop outgoing connections on port 22. My work place does the same too. |
You can check your system log to get bright:-)
|
File not found on both /etc/hosts.allow and /etc/hosts.deny. So I guess to problem's not there :P
My friend manages to connect to his Linux-box from school, so I believe there isn't a firewall blocking port 22. Also I don't know yet how to check my system log, so I'd like some advice on that too :) |
Quote:
are you trying to connect by entering you ip directly? normally it is a simple process - so it seems like your saying you can connect from a machine in the 212.149.*.* range but not outside that. do you have a firewall running? Quote:
I have an ssh directory in /var/log/ that my ssh related log entries go into (metalog rules btw :-)) and similar things can be done with syslog-ng etc., so on the off chance vehclk that as well. let us know how you go |
Sorry for being away for a while (like you would care =P)
Well I had to re-install Gentoo because a few little "accidents" and I got another weird problem. When booting Gentoo, I get this error message saying this: *Bringing eth0 up via DHCP [ !! ] * ERROR: Problem starting needed services. * "netmount" was not started. And because of that I can't get access to the internet. I've tried running netmount manually, but it can't start eth0 either. When I do "ifconfig eth0" I get an error saying: eth0: error fetching interface information: Device not found I've tested the card and it's working 100% and it's hooked on the comp. fine. And now Iäm out of ideas =P Hope some of you could help me! =) |
You didn't do anything different this install, did you? Did you change the computer's hardware in any way? Did you do a custom package selection as opposed to a full install? Did it work "out-of-the-box" before?
|
Quote:
Do you have the required modules and/or support for your network card comiled into the kernel? are you comiling the kernel manually or using genkernel? |
Quote:
The hardware has been the same except for the harddrive (the reason for re-install). I tested the card with a WinXP comp. (*gasp*) and it worked ok. I'm also logged in as root, so I don't think that will be a problem =P. |
You should probably go back to your kernel config and give everything the once over, just to be sure before you try other things. You probably just flatfingered a combobox someplace and left out support for networking, or your type of network card. It happens to the best of us, so don't rule it out. I suggest you go check it out.
|
assuming you know what module the card needs, is that modules loaded (ie is it in /etc/modules.autoload - or /etc/modules.autoload.d/kernel2.x/ if you are up to date)
if you do an lsmod do you see this module loaded? you may want to do an lspci | grep net to see which card(s) are physically present. If you are not sure what driver to use port the result of the lspci and we can work out what actually needs to be in the kernel |
All times are GMT -5. The time now is 06:10 PM. |