This is the mail archive of the
mailing list for the Cygwin project.
Re: OpenSSH-3.9p1-1, mysterious -r option, and documented steps to resolve "Connection to host closed." message was sshd privilege separation problem
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: cygwin at cygwin dot com
- Date: Sat, 28 Aug 2004 20:42:45 -0400 (EDT)
- Subject: Re: OpenSSH-3.9p1-1, mysterious -r option, and documented steps to resolve "Connection to host closed." message was sshd privilege separation problem
- References: <412EAB86.firstname.lastname@example.org> <email@example.com> <4130BC6D.A986894E@dessent.net>
- Reply-to: cygwin at cygwin dot com
On Sat, 28 Aug 2004, Brian Dessent wrote:
> Greg Morgan wrote:
> > OPTION 1.)
> > ...
> > I looked at Cygwin /usr/bin/ssh-host-config configuration script and
> > found the command line that I would use:
> > ...
> > OPTION 2.)
> > ...
> > The use vim's search and replace functions to
> > change all the sshd -a -D occurrences to sshd -a "-D -r" like so
> Option 3:
> echo "-D -r" >/proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/AppArgs
Umm, first off:
$ cat /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/AppArgs
(which indicates the absense of the newline in that value), so you have to
at least use "echo -n".
$ echo -n "-Der" > /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/AppArgs
bash: /proc/registry/HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/AppArgs: Read only file system
AFAIR, /proc/registry has always been read-only.
What you *can* do, however, is:
$ regtool -- set /HKEY_LOCAL_MACHINE/SYSTEM/CurrentControlSet/Services/sshd/Parameters/AppArgs "-Der"
|\ _,,,---,,_ firstname.lastname@example.org
ZZZzz /,`.-'`' -. ;-;;,_ email@example.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing." -- Dr. Jubal Harshaw
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html