LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Problems with SSH connections (https://www.linuxquestions.org/questions/linux-networking-3/problems-with-ssh-connections-239318/)

Kero-Chan 10-06-2004 03:09 AM

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.

sti2envy 10-06-2004 03:40 AM

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.

NetSnake 10-06-2004 04:20 AM

You can check your system log to get bright:-)

Kero-Chan 10-06-2004 11:17 AM

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 :)

Sutekh 10-07-2004 07:01 AM

Quote:

Originally posted by Kero-Chan
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.
damn that was my first thought :-)
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:

Also I don't know yet how to check my system log, so I'd like some advice on that too :)
ok well kinda depends on the system logger you choose. for syslog or syslog-ng then you need to look in /var/log/messages, for metalog you can look in /var/log/everything/current

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

Kero-Chan 10-14-2004 06:03 PM

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! =)

MikeZila 10-14-2004 07:58 PM

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?

Sutekh 10-14-2004 11:01 PM

Quote:

Originally posted by Kero-Chan
[SNIP]
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! =) [/B]
OK so if the device is not found then you are probably missing a module or something similar. I assume you mean when you say you tested it and it was working that you wern't using this gentoo install? either that or maybe the user you are logged in as doesn;t have sufficient access (not sure about that, don't know how to restrict access in that way but I am sure its possible).

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?

Kero-Chan 10-15-2004 07:25 AM

Quote:

You didn't do anything different this install, did you?
Umm.. yes I did =P I didn't use "genkernel all" this time, and I configured it myself. The last time I used "genkernel all" and it didn't work and someone told me I should compile it again, and now I did. I added the modules I thought was needed for it to function correctly and some extra modules for other eth cards.
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.

MikeZila 10-15-2004 08:01 AM

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.

Sutekh 10-15-2004 06:34 PM

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.