Re: [Cooker] Can't connect with sshd? (fixed?)

2002-10-05 Thread Tim Stoop

Op Saturday 05 October 2002 02:49, schreef Ben Reser:
 What version did you upgrade from?

8.2, normal install, nothing fancy (or Opera 6.03 should be considered fancy, 
about the only non-Mandrake-rpm I installed on that machine).

-- 
Regards,
Tim Stoop

PGP public key: finger [EMAIL PROTECTED]

Random quote/fortune:
The early worm gets the bird.





Re: [Cooker] Can't connect with sshd? (fixed?)

2002-10-05 Thread Ben Reser

On Sat, Oct 05, 2002 at 12:45:31PM +0200, Tim Stoop wrote:
 8.2, normal install, nothing fancy (or Opera 6.03 should be considered fancy, 
 about the only non-Mandrake-rpm I installed on that machine).

You weren't using a 2.2 kernel on the machine and ipchains?  Had the
machine been upgraded prior to that?  THe reason I ask is because I'm
wondering if your connection sharing got lost because when you upgraded
you switched from ipchains to iptables.  That's the only thing I can
come up with as to why that would happen...

-- 
Ben Reser [EMAIL PROTECTED]
http://ben.reser.org

Never take no as an answer from someone who isn't authorized to say yes.




Re: [Cooker] Can't connect with sshd? (fixed?)

2002-10-05 Thread Tim Stoop

Op Saturday 05 October 2002 20:47, schreef Ben Reser:
 You weren't using a 2.2 kernel on the machine and ipchains?  Had the
 machine been upgraded prior to that? 

Nope, it was a 2.4.18-6mdk (last number I'm not 100% sure of, but the first 
three are absolutly correct) with iptables as firewall. I know for sure 
because I recompiled the kernel a few times but kept switching back to the 
Mandrake one. Also, I tried fiddling with iptables a few times (command line, 
not in a script) and I always failed :)

 THe reason I ask is because I'm
 wondering if your connection sharing got lost because when you upgraded
 you switched from ipchains to iptables.  That's the only thing I can
 come up with as to why that would happen...

I don't know why, but it was definatly gone. I always connect my laptop to the 
main server by crosslink and after the upgrade, I didn't even get a ip from 
the server (dhcp). I checked the laptop a few times and restarted the network 
on the laptop a few times, but it didn't help. After fixing mcc (it needed a 
patch, because the dutch version of mcc wasn't working) I looked at 
Connection sharing and it told me it wasn't configured yet. I configured it 
and it worked, but I wasn't able to connect from the laptop with ssh. I'm 
afraid I didn't try outgoing ssh from server to laptop. But all other things 
worked, I got my mail from Internet.

Strange, huh?

-- 
Regards,
Tim Stoop

PGP public key: finger [EMAIL PROTECTED]

Random quote/fortune:
Consequences, Schmonsequences, as long as I'm rich. -- Looney Tunes, Ali 
Baba Bunny (1957, Chuck Jones)






Re: [Cooker] Can't connect with sshd?

2002-10-04 Thread Ben Reser

On Fri, Oct 04, 2002 at 09:15:38PM +0200, Tim Stoop wrote:
 (Don't know if this is too basic for this list, also because I'm using Mdk 
 9.0, but I thought it's a development-bug because it shouldn't act like this 
 on default. At least I don't expect it to...)
 
 Hi there,
 
 I've got the following setup:
 
 main server: Mdk 9.0, using drakgw as a gateway for the rest of the network
modem: Internet
eth0: internal network
 laptop: connected with a crosslink-cable to the server, also Mdk 9.0
eth0: getting ip  info from main server, using dhcp
 
 Problem: If I try to connect with ssh from the laptop to the main server, I 
 get a connection refused. What am I doing wrong?

This sounds like an FAQ?  Let me guess the server is running with a high
msec security mode.  If you have lines like these in your
/etc/hosts.deny:

# Mandrake-Security : if you remove this comment, remove the next line
too.
ALL:ALL EXCEPT localhost:DENY

Then you need to add something like this in /etc/hosts.allow:
sshd:ALL

Note that this will open ssh for everyone.  If you want to be more
specific run this command to get the man page on the format of those
files:
man 5 hosts_access

-- 
Ben Reser [EMAIL PROTECTED]
http://ben.reser.org

Never take no as an answer from someone who isn't authorized to say yes.




Re: [Cooker] Can't connect with sshd?

2002-10-04 Thread Tim Stoop

Op Friday 04 October 2002 22:05, schreef Ben Reser:
 This sounds like an FAQ?  Let me guess the server is running with a high
 msec security mode. 

Nope, standard security.

 If you have lines like these in your
 /etc/hosts.deny:

Nope, both (hosts.allow and hosts.deny) are empty.

Any other idea?

-- 
Regards,
Tim Stoop

PGP public key: finger [EMAIL PROTECTED]

Random quote/fortune:
Brady's First Law of Problem Solving: When confronted by a difficult problem, 
you can solve it more easily by reducing it to the question, How would the 
Lone Ranger have handled this?





Re: [Cooker] Can't connect with sshd?

2002-10-04 Thread Oden Eriksson

On fredagen den 4 oktober 2002 21.15 Tim Stoop wrote:
 (Don't know if this is too basic for this list, also because I'm using Mdk
 9.0, but I thought it's a development-bug because it shouldn't act like
 this on default. At least I don't expect it to...)

 Hi there,

 I've got the following setup:

 main server: Mdk 9.0, using drakgw as a gateway for the rest of the network
modem: Internet
eth0: internal network
 laptop: connected with a crosslink-cable to the server, also Mdk 9.0
eth0: getting ip  info from main server, using dhcp

 Problem: If I try to connect with ssh from the laptop to the main server, I
 get a connection refused. What am I doing wrong?

I hope you have examined the logs first?

iptables -L

etc.

?

-- 
Regards // Oden Eriksson
Deserve-IT Networks - http://d-srv.com




Re: [Cooker] Can't connect with sshd?

2002-10-04 Thread Gregory K. Meyer

On Friday 04 October 2002 03:15 pm, Tim Stoop wrote:
 (Don't know if this is too basic for this list, also because I'm using Mdk
 9.0, but I thought it's a development-bug because it shouldn't act like
 this on default. At least I don't expect it to...)

 Hi there,

 I've got the following setup:

 main server: Mdk 9.0, using drakgw as a gateway for the rest of the network
modem: Internet
eth0: internal network
 laptop: connected with a crosslink-cable to the server, also Mdk 9.0
eth0: getting ip  info from main server, using dhcp

 Problem: If I try to connect with ssh from the laptop to the main server, I
 get a connection refused. What am I doing wrong?

What security level did you set up at?  Try shorewall clear as root and try to 
connect.  If you can, it could be your firewall configuration.

 
Gregory Meyer
___
[EMAIL PROTECTED]






Re: [Cooker] Can't connect with sshd? (fixed?)

2002-10-04 Thread Tim Stoop

Hi there,

Well, don't know how I did it, but it's fixed. I indeed checked iptables -L 
but it didn't say it was blocking my traffic. What I did now was reconfigure 
the shared internet-connection, with drakgw and all of the sudden, it worked 
again. Don't ask me how, it just did. Nothing in the logs, either.

I really don't understand this. Is there anything you people want me to do to 
diagnose this further? I can't seem te recreate it...

(Just for the record, I didn't do anything fancy the first time, I just 
upgraded, noted that the connection wasn't shared anymore, started drakgw and 
installed the shared connection. The shared connection worked, but I wasn't 
able to ssh to the machine. Maybe it's due to the upgrade?)

-- 
Regards,
Tim Stoop

PGP public key: finger [EMAIL PROTECTED]

Random quote/fortune:
Absence makes the heart forget.





Re: [Cooker] Can't connect with sshd?

2002-10-04 Thread Ben Reser

On Fri, Oct 04, 2002 at 10:17:37PM +0200, Tim Stoop wrote:
 Nope, both (hosts.allow and hosts.deny) are empty.
 Any other idea?

Well what's in your log files?

-- 
Ben Reser [EMAIL PROTECTED]
http://ben.reser.org

Never take no as an answer from someone who isn't authorized to say yes.




Re: [Cooker] Can't connect with sshd? (fixed?)

2002-10-04 Thread Ben Reser

On Fri, Oct 04, 2002 at 11:29:02PM +0200, Tim Stoop wrote:
 (Just for the record, I didn't do anything fancy the first time, I just 
 upgraded, noted that the connection wasn't shared anymore, started drakgw and 
 installed the shared connection. The shared connection worked, but I wasn't 
 able to ssh to the machine. Maybe it's due to the upgrade?)

What version did you upgrade from?

-- 
Ben Reser [EMAIL PROTECTED]
http://ben.reser.org

Never take no as an answer from someone who isn't authorized to say yes.