* RE: sshd working as service under Win2K?
@ 2000-09-08 11:31 Tommy Williams
0 siblings, 0 replies; 3+ messages in thread
From: Tommy Williams @ 2000-09-08 11:31 UTC (permalink / raw)
To: 'cygwin'
That took care of it.
Thank you very much!
--
Tommy Williams <tommyw@microsoft.com>
Microsoft bCentral < http://www.bcentral.com >
-----Original Message-----
From: Corinna Vinschen [ mailto:vinschen@cygnus.com ]
Sent: Friday, September 08, 2000 9:38 AM
To: 'cygwin@sources.redhat.com'
Subject: Re: sshd working as service under Win2K?
Tommy Williams wrote:
>
> Has any gotten sshd to run as a service under Win2K (either Professional
or
> Server)?
> [...]
> If anyone has gotten sshd to work as a service under Win2K, please let me
> know how you did it.
Sure. No problem.
Your description has a leak:
Did you change the system environment so that cygwin1.dll is in
the PATH? Something like:
C:\WINNT;C:\WINNT\system32;<bla>;C:\Cygwin\bin
Don't forget to reboot then so that service manager gets the new
environment.
Hope, that helps,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@cygnus.com
--
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] 3+ messages in thread
* Re: sshd working as service under Win2K?
2000-09-08 9:20 Tommy Williams
@ 2000-09-08 9:38 ` Corinna Vinschen
0 siblings, 0 replies; 3+ messages in thread
From: Corinna Vinschen @ 2000-09-08 9:38 UTC (permalink / raw)
To: 'cygwin@sources.redhat.com'
Tommy Williams wrote:
>
> Has any gotten sshd to run as a service under Win2K (either Professional or
> Server)?
> [...]
> If anyone has gotten sshd to work as a service under Win2K, please let me
> know how you did it.
Sure. No problem.
Your description has a leak:
Did you change the system environment so that cygwin1.dll is in
the PATH? Something like:
C:\WINNT;C:\WINNT\system32;<bla>;C:\Cygwin\bin
Don't forget to reboot then so that service manager gets the new
environment.
Hope, that helps,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin@sources.redhat.com
Red Hat, Inc.
mailto:vinschen@cygnus.com
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* sshd working as service under Win2K?
@ 2000-09-08 9:20 Tommy Williams
2000-09-08 9:38 ` Corinna Vinschen
0 siblings, 1 reply; 3+ messages in thread
From: Tommy Williams @ 2000-09-08 9:20 UTC (permalink / raw)
To: 'cygwin@sources.redhat.com'
Has any gotten sshd to run as a service under Win2K (either Professional or
Server)?
It works fine if I run it from the command line, but I cannot get it to run
as a service. I also cannot get inetd to run as a service. Details below.
Here begins a long message of things I've tried, so please be patient.
Versions:
Windows 2000 Professional or Server, with Service Pack 1
Cygwin 1.1.4
OpenSSH 2.2.0p1
instsrv.exe and srvany.exe from the Win2K Server Resource Kit
-- I tried instsrv.exe and srvany.exe from the NT resource
kit and got the same results
CYGWIN env var is empty
Cygwin installed at C:\cygwin
Procedure:
(1) Acquired the OpenSSH source from:
ftp://ftp.franken.de/pub/win32/develop/gnuwin32/cygwin/porters/Vinschen_Cori
nna/V1.1.4
and unpacked it.
(2) Modified /etc/passwd to set up a home directory, following suggestions
in /usr/doc/Cygwin/login.README and openssh-2.2.0p1.README
(3) /usr/local/bin/ssh-config
(4) /usr/local/sbin/sshd.exe
(5) ssh localhost
At this point, everything worked. I could log into the machines from FreeBSD
machines, from other Windows boxes, scp, etc. I was happy. I was even able
to build rsync 2.4.6 and, using ssh as a transport, rsync between the W2K
boxes and some FreeBSD machines.
Then I realized that I needed to run it as a service. So here's the service
process (all this done as user Administrator):
(1) Install Win2K Server Resource Kit and copy instsrv.exe and srvany.exe to
/usr/local/bin.
(2) instsrv sshd "C:\\cygwin\\usr\\local\\bin\\srvany.exe"
-- Service installs successfully
(3) Run the following through regedit:
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\sshd]
"ObjectName"="LocalSystem"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servecs\sshd\Parameters]
"Application"="C:\\cygwin\\usr\\local\\sbin\\sshd.exe"
(4) net start sshd
-- Response:
The sshd service is starting.
The sshd service was started successfully.
(5) ps
-- Response:
PID TTY
1050 -1 08:58:15 /usr/bin/ps.exe
1000 -1 08:18:51 /usr/bin/bash.exe
Nothing is listening on port 22 on the machine. Checking the task manager, I
see that srvany.exe is indeed running. But sshd.exe is not.
I then tried to set things up to run under inetd. I followed the
instructions on an earlier message I found on the mailing list archives. I
got it installed as a service, but when I try to start it:
The service is not responding to the control function.
More help is available by typing NET HELPMSG 2186.
So I can only run sshd when I run it from the command line. I get the same
results on either Win2K Professional or Server.
If anyone has gotten sshd to work as a service under Win2K, please let me
know how you did it.
Thanks.
--
Tommy Williams <tommyw@microsoft.com>
Microsoft bCentral < http://www.bcentral.com >
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-09-08 11:31 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-08 11:31 sshd working as service under Win2K? Tommy Williams
-- strict thread matches above, loose matches on Subject: below --
2000-09-08 9:20 Tommy Williams
2000-09-08 9:38 ` 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).