public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: openssh and inetd woes...
@ 2000-06-14  6:01 Noel L Yap
  0 siblings, 0 replies; 8+ messages in thread
From: Noel L Yap @ 2000-06-14  6:01 UTC (permalink / raw)
  To: cygwin

Can you point me to where I can get inetd for cygwin?

Thanks,
Noel




corinna@vinschen.de on 06/14/2000 06:02:24 AM

Please respond to cygwin@sourceware.cygnus.com

To:   stnor@sweden.hp.com
cc:   cygwin@sourceware.cygnus.com (bcc: Noel L Yap)
Subject:  Re: openssh and inetd woes...




Stefan Norberg wrote:
> > Sorry but I can't reproduce that behaviour. I'm using sshd
> > as stand-alone service which runs with my own user account.
>
> I nailed it down to bash. It works if I use "sh" as the shell. Why?

Because the path "/bin/sh" is hardcoded as the path to the default
shell, if ssh can't find another shell in the users /etc/passwd
entry. If you don't like it, you'll have to config _PATH_BSHELL
as another shell and moreover there are some hardcoded /bin/sh
calls in some sourcefiles which has to be changed by hand:

     session.c
     sshconnect.c

I've just mailed that problem to one of the OpenSSH maintainers.

> Corinna - are you researching the inetd Win32 stuff or is it in /dev/null?

I'm sorry again, I can't reproduce that on my system. I have
started sshd via inetd and the output of native win32 tools
is shown in my ssh xterm window as well as in ssh started from a
cmd window as expected. But I have seen a problem with xauth in
that configuration which I will (hopefully) get patched in my
next version of OpenSSH. Seems to be a permission problem.

Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com








This communication is for informational purposes only.  It is not intended as
an offer or solicitation for the purchase or sale of any financial instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan & Co. Incorporated, its
subsidiaries and affiliates.


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: openssh and inetd woes...
  2000-06-14  7:44 Earnie Boyd
@ 2000-06-14  8:19 ` Corinna Vinschen
  0 siblings, 0 replies; 8+ messages in thread
From: Corinna Vinschen @ 2000-06-14  8:19 UTC (permalink / raw)
  To: earnie_boyd; +Cc: cygwin, Stefan Norberg

Earnie Boyd wrote:
> 
> --- Corinna Vinschen <corinna@vinschen.de> wrote:
> >
> > I'm sorry again, I can't reproduce that on my system. I have
> > started sshd via inetd and the output of native win32 tools
> > is shown in my ssh xterm window as well as in ssh started from a
> > cmd window as expected. But I have seen a problem with xauth in
> > that configuration which I will (hopefully) get patched in my
> > next version of OpenSSH. Seems to be a permission problem.
> >
> 
> Perhaps Stefan has the tty option set and you don't, Corinna.  Can this be
> verified?

I'm using both: tty from terminal emulation (TeraTerm) and xterm,
notty from cmd window.

Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: openssh and inetd woes...
@ 2000-06-14  7:44 Earnie Boyd
  2000-06-14  8:19 ` Corinna Vinschen
  0 siblings, 1 reply; 8+ messages in thread
From: Earnie Boyd @ 2000-06-14  7:44 UTC (permalink / raw)
  To: cygwin, Stefan Norberg; +Cc: cygwin

--- Corinna Vinschen <corinna@vinschen.de> wrote:
> 
> I'm sorry again, I can't reproduce that on my system. I have
> started sshd via inetd and the output of native win32 tools
> is shown in my ssh xterm window as well as in ssh started from a
> cmd window as expected. But I have seen a problem with xauth in
> that configuration which I will (hopefully) get patched in my
> next version of OpenSSH. Seems to be a permission problem.
> 

Perhaps Stefan has the tty option set and you don't, Corinna.  Can this be
verified?


=====
---
   Earnie Boyd: < mailto:earnie_boyd@yahoo.com >
            __Cygwin: POSIX on Windows__
Cygwin Newbies: < http://www.freeyellow.com/members5/gw32/index.html >
           __Minimalist GNU for Windows__
  Mingw32 List: < http://www.egroups.com/group/mingw32/ >
    Mingw Home: < http://www.mingw.org/ >

__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: openssh and inetd woes...
  2000-06-13 17:14     ` Stefan Norberg
@ 2000-06-14  3:02       ` Corinna Vinschen
  0 siblings, 0 replies; 8+ messages in thread
From: Corinna Vinschen @ 2000-06-14  3:02 UTC (permalink / raw)
  To: Stefan Norberg; +Cc: cygwin

Stefan Norberg wrote:
> > Sorry but I can't reproduce that behaviour. I'm using sshd
> > as stand-alone service which runs with my own user account.
> 
> I nailed it down to bash. It works if I use "sh" as the shell. Why?

Because the path "/bin/sh" is hardcoded as the path to the default
shell, if ssh can't find another shell in the users /etc/passwd
entry. If you don't like it, you'll have to config _PATH_BSHELL
as another shell and moreover there are some hardcoded /bin/sh
calls in some sourcefiles which has to be changed by hand:

	session.c
	sshconnect.c

I've just mailed that problem to one of the OpenSSH maintainers.

> Corinna - are you researching the inetd Win32 stuff or is it in /dev/null?

I'm sorry again, I can't reproduce that on my system. I have
started sshd via inetd and the output of native win32 tools
is shown in my ssh xterm window as well as in ssh started from a
cmd window as expected. But I have seen a problem with xauth in
that configuration which I will (hopefully) get patched in my
next version of OpenSSH. Seems to be a permission problem.

Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: openssh and inetd woes...
  2000-06-13 15:54   ` Robert Collins
@ 2000-06-13 17:14     ` Stefan Norberg
  2000-06-14  3:02       ` Corinna Vinschen
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Norberg @ 2000-06-13 17:14 UTC (permalink / raw)
  To: cygwin

> > I'm trying to set up a *minimal* remote admin kit for NT
> > using Corinna Vinschen's excellent ports of inetd and openssh. This
means I'm not
> > using the full Cygwin environment.
> >
> > * When I'm running SSHD as a stand-alone server I can't scp to the
system -
> > "connecion lost". SCP works fine if I'm running from inetd or if I'm
running "sshd -d".
>
> Sorry but I can't reproduce that behaviour. I'm using sshd
> as stand-alone service which runs with my own user account.

I nailed it down to bash. It works if I use "sh" as the shell. Why?
Corinna - are you researching the inetd Win32 stuff or is it in /dev/null?

The next step is to get openssh built with TCP Wrappers support...


Stefan


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: openssh and inetd woes...
  2000-06-13 12:24 ` Corinna Vinschen
@ 2000-06-13 15:54   ` Robert Collins
  2000-06-13 17:14     ` Stefan Norberg
  0 siblings, 1 reply; 8+ messages in thread
From: Robert Collins @ 2000-06-13 15:54 UTC (permalink / raw)
  To: cygwin

Just a stab in the dark... do you have inetd running as local system, with
'interact with desktop' turned on?

If so try turning that off

Rob
----- Original Message -----
From: "Corinna Vinschen" <corinna@vinschen.de>
To: "Stefan Norberg" <stnor@sweden.hp.com>
Cc: <cygwin@sourceware.cygnus.com>
Sent: Wednesday, June 14, 2000 5:23 AM
Subject: Re: openssh and inetd woes...


> Stefan Norberg wrote:
> > I'm trying to set up a *minimal* remote admin kit for NT using Corianna
> > Vinschen's excellent ports of inetd and openssh. This means I'm not
using
> > the full Cygwin environment.
> >
> > * When I'm running SSHD as a stand-alone server I can't scp to the
system -
> > "connecion lost". SCP works fine if I'm running from inetd or if I'm
running
> > "sshd -d".
>
> Sorry but I can't reproduce that behaviour. I'm using sshd
> as stand-alone service which runs with my own user account.
>
> Are you trying to use password auth or RSA auth? I'm just
> asking since RSA is not able to change the user context.
>
> > * When running sshd from inetd I don't get the output from _Win32_
console
> > apps (like net.exe). These apps are started in the backgroud (a separate
> > console window pops up on the server). For some reason, this works fine
when
> > running sshd as a stand-alone server or in debug mode.
>
> That behaviour seems to be related to inetd's state as a
> windows service. I'm not sure but it's the only difference
> which may result in that.
>
> Corinna
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: openssh and inetd woes...
  2000-06-12 17:43 Stefan Norberg
@ 2000-06-13 12:24 ` Corinna Vinschen
  2000-06-13 15:54   ` Robert Collins
  0 siblings, 1 reply; 8+ messages in thread
From: Corinna Vinschen @ 2000-06-13 12:24 UTC (permalink / raw)
  To: Stefan Norberg; +Cc: cygwin

Stefan Norberg wrote:
> I'm trying to set up a *minimal* remote admin kit for NT using Corianna
> Vinschen's excellent ports of inetd and openssh. This means I'm not using
> the full Cygwin environment.
> 
> * When I'm running SSHD as a stand-alone server I can't scp to the system -
> "connecion lost". SCP works fine if I'm running from inetd or if I'm running
> "sshd -d".

Sorry but I can't reproduce that behaviour. I'm using sshd
as stand-alone service which runs with my own user account.

Are you trying to use password auth or RSA auth? I'm just
asking since RSA is not able to change the user context.

> * When running sshd from inetd I don't get the output from _Win32_ console
> apps (like net.exe). These apps are started in the backgroud (a separate
> console window pops up on the server). For some reason, this works fine when
> running sshd as a stand-alone server or in debug mode.

That behaviour seems to be related to inetd's state as a
windows service. I'm not sure but it's the only difference
which may result in that.

Corinna

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* openssh and inetd woes...
@ 2000-06-12 17:43 Stefan Norberg
  2000-06-13 12:24 ` Corinna Vinschen
  0 siblings, 1 reply; 8+ messages in thread
From: Stefan Norberg @ 2000-06-12 17:43 UTC (permalink / raw)
  To: cygwin

Hi all! I'm new to this list so please bear with me if this is a clueless
question.

I'm trying to set up a *minimal* remote admin kit for NT using Corianna
Vinschen's excellent ports of inetd and openssh. This means I'm not using
the full Cygwin environment.

* When I'm running SSHD as a stand-alone server I can't scp to the system -
"connecion lost". SCP works fine if I'm running from inetd or if I'm running
"sshd -d".

* When running sshd from inetd I don't get the output from _Win32_ console
apps (like net.exe). These apps are started in the backgroud (a separate
console window pops up on the server). For some reason, this works fine when
running sshd as a stand-alone server or in debug mode.

Any clues - anyone?


Stefan Norberg
stnor@sweden.hp.com

Everything is mounted TEXT mode.

Files on the system:
--------------------
\winnt\system32:
	cygwin.dll (latest net release),
	inetd.exe (running as Local System),
	bash.exe,
	ssh*.exe

\etc:
	passwd (made by mkpasswd -l)
	group (made by mkgroup -l)
	inetd.conf
	ssh*

The software is built this way:

Inetutils
---------
$
./configure --libexecdir=/winnt/system32 --sysconfdir=/etc --prefix=/winnt/s
ystem32 --bindir=/winnt/system32 --sbindir=/winnt/system32
$ make all

OPENSSH
-------
bash-2.04$
./configure --prefix=/winnt/system32 --bindir=/winnt/system32 --sbindir=/win
nt/system32 --sysconfdir=/etc --with-ssl-dir=/usr/src/openssl/openssl-0.9.5 
--with-pid-dir=/winnt/system32 --with-default-path=/winnt/system32 --without
-lastlog --with-libexecdir=/winnt/system32


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~2000-06-14  8:19 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-06-14  6:01 openssh and inetd woes Noel L Yap
  -- strict thread matches above, loose matches on Subject: below --
2000-06-14  7:44 Earnie Boyd
2000-06-14  8:19 ` Corinna Vinschen
2000-06-12 17:43 Stefan Norberg
2000-06-13 12:24 ` Corinna Vinschen
2000-06-13 15:54   ` Robert Collins
2000-06-13 17:14     ` Stefan Norberg
2000-06-14  3:02       ` Corinna Vinschen

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