LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-06-2004, 03:09 AM   #1
Kero-Chan
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
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.
 
Old 10-06-2004, 03:40 AM   #2
sti2envy
Member
 
Registered: Sep 2004
Posts: 43

Rep: Reputation: 15
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.
 
Old 10-06-2004, 04:20 AM   #3
NetSnake
LQ Newbie
 
Registered: Sep 2004
Location: China
Distribution: Debian 3.0r2 unstable
Posts: 28

Rep: Reputation: 15
You can check your system log to get bright:-)
 
Old 10-06-2004, 11:17 AM   #4
Kero-Chan
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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
 
Old 10-07-2004, 07:01 AM   #5
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
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
 
Old 10-14-2004, 06:03 PM   #6
Kero-Chan
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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! =)
 
Old 10-14-2004, 07:58 PM   #7
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Rep: Reputation: 30
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?
 
Old 10-14-2004, 11:01 PM   #8
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
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?
 
Old 10-15-2004, 07:25 AM   #9
Kero-Chan
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 10-15-2004, 08:01 AM   #10
MikeZila
Member
 
Registered: Jul 2004
Location: Parts Unknown
Distribution: Arch
Posts: 377

Rep: Reputation: 30
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.
 
Old 10-15-2004, 06:34 PM   #11
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Where do I go to allow RFB and ssh connections in MDK 9.2? DesertWolf0132 Linux - Software 5 06-11-2004 08:31 AM
SSH doesn't accept connections basse- Linux - Software 1 05-23-2004 07:33 AM
Can I see ssh connections? bruno buys Linux - Networking 4 11-19-2003 02:46 PM
SSH is blocking my connections tarballedtux Linux - Security 8 11-01-2002 04:19 PM
SSH - Refused Connections bfloeagle Linux - Networking 6 08-31-2001 12:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration