public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* cannot connect sshd on port 21 from w2k client
@ 2002-07-24  9:48 Gerrit P. Haase
  2002-07-24 11:05 ` Corinna Vinschen
  0 siblings, 1 reply; 7+ messages in thread
From: Gerrit P. Haase @ 2002-07-24  9:48 UTC (permalink / raw)
  To: cygwin

Hallo cygwin,

I cannot connect to sshd from my w2k client when sshd is running on
port 21, the debug log:
debug1: sshd version OpenSSH_3.4p1
debug1: private host key: #0 type 0 RSA1
debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 21 on 0.0.0.0.
Server listening on 0.0.0.0 port 21.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from 192.168.5.3 port 4540
debug1: Client protocol version 2.0; client software version OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat OpenSSH*
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-1.99-OpenSSH_3.4p1
debug2: Network child is on pid 1017
debug3: preauth child monitor started
debug3: mm_request_receive entering
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
Read from socket failed: Connection reset by peer
debug1: Calling cleanup 0x41c9c4(0x0)
debug1: Calling cleanup 0x41c9c4(0x0)

The same when connection is made from NT4 client:
debug1: sshd version OpenSSH_3.4p1
debug1: private host key: #0 type 0 RSA1
debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 21 on 0.0.0.0.
Server listening on 0.0.0.0 port 21.
Generating 768 bit RSA key.
RSA key generation complete.
debug1: Server will not fork when running in debugging mode.
Connection from 127.0.0.1 port 1897
debug1: Client protocol version 2.0; client software version OpenSSH_3.4p1
debug1: match: OpenSSH_3.4p1 pat OpenSSH*
Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-1.99-OpenSSH_3.4p1
debug2: Network child is on pid 1137
debug3: preauth child monitor started
debug3: mm_request_receive entering
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
[...and so on...]

login succeeds from NT4 clients but not from w2k clients.
I tested also from a remote NT4 client instead of localhost which works
well too.
Any ideas?

-- 
Gerrit


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cannot connect sshd on port 21 from w2k client
  2002-07-24  9:48 cannot connect sshd on port 21 from w2k client Gerrit P. Haase
@ 2002-07-24 11:05 ` Corinna Vinschen
  2002-07-24 14:55   ` Gerrit P. Haase
  0 siblings, 1 reply; 7+ messages in thread
From: Corinna Vinschen @ 2002-07-24 11:05 UTC (permalink / raw)
  To: cygwin

On Wed, Jul 24, 2002 at 05:08:19PM +0200, Gerrit P. Haase wrote:
> Hallo cygwin,
> 
> I cannot connect to sshd from my w2k client when sshd is running on
> port 21, the debug log:

You remeber my announcement that ssh is now linked against
tcp_wrappers...

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cannot connect sshd on port 21 from w2k client
  2002-07-24 11:05 ` Corinna Vinschen
@ 2002-07-24 14:55   ` Gerrit P. Haase
  2002-07-25  7:27     ` Corinna Vinschen
  0 siblings, 1 reply; 7+ messages in thread
From: Gerrit P. Haase @ 2002-07-24 14:55 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna schrieb:

> On Wed, Jul 24, 2002 at 05:08:19PM +0200, Gerrit P. Haase wrote:
>> Hallo cygwin,

>> I cannot connect to sshd from my w2k client when sshd is running on
>> port 21, the debug log:

> You remeber my announcement that ssh is now linked against
> tcp_wrappers...

No, havn't read it.  Well, that means I need to install tcp_wrappers?
And why is it possible to connect from my NT4 box then?


Gerrit
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cannot connect sshd on port 21 from w2k client
  2002-07-24 14:55   ` Gerrit P. Haase
@ 2002-07-25  7:27     ` Corinna Vinschen
  2002-07-25 10:25       ` Gerrit P. Haase
  0 siblings, 1 reply; 7+ messages in thread
From: Corinna Vinschen @ 2002-07-25  7:27 UTC (permalink / raw)
  To: cygwin

On Wed, Jul 24, 2002 at 09:11:34PM +0200, Gerrit P. Haase wrote:
> Corinna schrieb:
> 
> > On Wed, Jul 24, 2002 at 05:08:19PM +0200, Gerrit P. Haase wrote:
> >> Hallo cygwin,
> 
> >> I cannot connect to sshd from my w2k client when sshd is running on
> >> port 21, the debug log:
> 
> > You remeber my announcement that ssh is now linked against
> > tcp_wrappers...
> 
> No, havn't read it.

Too bad.

>   Well, that means I need to install tcp_wrappers?

It's linked statically.  If you don't have tcp_wrappers installed,
you probably don't have the hosts.allow and hosts.deny files in /etc
and in that case, your problem isn't related to tcp_wrappers.

But *if* you installed tcp_wrappers *or* created these files by hand
on one of these machines, the rules given in these files apply.

> And why is it possible to connect from my NT4 box then?

Depending on the above, the rules are given in these files.  Note that
you connect using a normal ip address when connecting from w2k
(192.168.5.3) while you connect using localhost (127.0.0.1) when
connecting from nt4.  That's an interesting difference.

Other than that, you can always use strace and gdb to get more info...

Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cannot connect sshd on port 21 from w2k client
  2002-07-25  7:27     ` Corinna Vinschen
@ 2002-07-25 10:25       ` Gerrit P. Haase
  0 siblings, 0 replies; 7+ messages in thread
From: Gerrit P. Haase @ 2002-07-25 10:25 UTC (permalink / raw)
  To: Corinna Vinschen

Corinna schrieb:

> But *if* you installed tcp_wrappers *or* created these files by hand
> on one of these machines, the rules given in these files apply.

Never installed it.

>> And why is it possible to connect from my NT4 box then?

> Depending on the above, the rules are given in these files.  Note that
> you connect using a normal ip address when connecting from w2k
> (192.168.5.3) while you connect using localhost (127.0.0.1) when
> connecting from nt4.  That's an interesting difference.

I can also connect from a remote NT4 box.

> Other than that, you can always use strace and gdb to get more info...

Well, unfortunately I have not that much time, maybe later this year.


Gerrit
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cannot connect sshd on port 21 from w2k client
  2002-07-24 11:24 ` Gerrit P. Haase
@ 2002-07-24 11:34   ` Gerrit P. Haase
  0 siblings, 0 replies; 7+ messages in thread
From: Gerrit P. Haase @ 2002-07-24 11:34 UTC (permalink / raw)
  To: cygwin; +Cc: Harig, Mark A.

Gerrit schrieb:

> Mark schrieb:

>> 1. Does /var/log/sshd.log provide any clues?

> That is what I posted with my previous mail, sshd started as a service
>  with "-d -d -d" as args instead of -D.

>> 2. You're running NTFS on Win2k, right?

> The server runs on NT4 and I want to connect from W2K.

And yes, I'm running only NTFS on every disk here.

>> 3. Your file/directory permissions all look ok, right?

> Hmmm, I can connect from several NT4 boxes so I guess it is all ok.
> I can also connect from any client if the shd is running on port 22...
> I forget to mention that I can also connect from a linux box, regardless
> which port sshd is listening to.


> Gerrit


-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: cannot connect sshd on port 21 from w2k client
       [not found] <BADF3C947A1BD54FBA75C70C241B0B9E40F131@ex02.idirect.net>
@ 2002-07-24 11:24 ` Gerrit P. Haase
  2002-07-24 11:34   ` Gerrit P. Haase
  0 siblings, 1 reply; 7+ messages in thread
From: Gerrit P. Haase @ 2002-07-24 11:24 UTC (permalink / raw)
  To: Harig, Mark A.; +Cc: cygwin

Mark schrieb:

> 1. Does /var/log/sshd.log provide any clues?

That is what I posted with my previous mail, sshd started as a service
 with "-d -d -d" as args instead of -D.

> 2. You're running NTFS on Win2k, right?

The server runs on NT4 and I want to connect from W2K.

> 3. Your file/directory permissions all look ok, right?

Hmmm, I can connect from several NT4 boxes so I guess it is all ok.
I can also connect from any client if the shd is running on port 22...
I forget to mention that I can also connect from a linux box, regardless
which port sshd is listening to.


Gerrit
-- 
=^..^=


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2002-07-25 15:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-24  9:48 cannot connect sshd on port 21 from w2k client Gerrit P. Haase
2002-07-24 11:05 ` Corinna Vinschen
2002-07-24 14:55   ` Gerrit P. Haase
2002-07-25  7:27     ` Corinna Vinschen
2002-07-25 10:25       ` Gerrit P. Haase
     [not found] <BADF3C947A1BD54FBA75C70C241B0B9E40F131@ex02.idirect.net>
2002-07-24 11:24 ` Gerrit P. Haase
2002-07-24 11:34   ` Gerrit P. Haase

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).