This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: OpenSSH through inetd.


James Dumser wrote:
> 
> On Wed, 02 Aug 2000 19:40:35 +0200, Corinna Vinschen wrote:
> > Has anybody of you tried to install sshd as service from LocalSystem
> > account started via SRVANY.EXE instead of inetd?
> 
> Would you mind posting some instructions (or a reference to
> instructions) for getting it started via SRVANY? I'd be happy to try
> this out, and was in fact a little put off by the comments on -i in the
> sshd man page.

SRVANY.EXE and INSTSRV.EXE are tools from the NT resource kit.

Assuming your SRVANY.EXE is in D:/usr/local/bin and your
sshd is in D:/usr/local/sbin:

On the commandline call:

	instsrv sshd D:\\usr\\local\\bin\\SRVANY.EXE

Output:
	The service was successfully installed, blahblah...

Then call RegEdit.
You will find a Registry Key:

	HKLM\SYSTEM\CurrentControlSet\Services\sshd

Under that key create a new Subkey named "Parameters"
Under "Parameters" create a new string (REG_SZ type) named
"Application".
Open the string "Application" and insert the value:

	D:\usr\local\sbin\sshd.exe

Leave RegEdit.

Start sshd from the command line by calling:

	net start sshd

Stop sshd (this is the complex part) by calling:

	net stop sshd
	kill -9 <sshd_pid>

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]