public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* SSHD, Cygwin and Windows 2003
@ 2003-09-15 19:30 Mark J de Jong
  2003-09-16 10:26 ` Manipulating user privileges (was Re: SSHD, Cygwin and Windows 2003) Corinna Vinschen
  0 siblings, 1 reply; 13+ messages in thread
From: Mark J de Jong @ 2003-09-15 19:30 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]

Hello,
I've looked and couldn't find decent docs on this so for those of you
who are lookin', this is a quick howto on how to setup the
Cygwin/OpenSSH daemon on M$ Windows 2003. This will fix the passwordless
(ssh key) login issue.

1. Install Cygwin with the openssh binaries....
2. After completing the Cygwin setup, goto the cygwin command prompt and
type 'ssh-host-config'
3. Answer 'y' when asked if you want to sshd with privilege separation.
4. Answer 'y' when asked if user sshd should be created by the script.
5. Answer 'y' when asked if you want sshd to be created as a service.
6. Create a new windows user named "sshdproc" or whatever you wish the
sshd process account username to be. If you happen to notice the sshd
user being disabled, don't enable it!
7. Place the sshdproc user in the "Administrators" group.
8. Give the sshdproc user the following system rights:
	* Create a token object
	* Log on as a service
	* Replace a process level token

	And for security.....
	* Deny log on locally
	* Deny access to this computer from the network

9. Reconfigure the "CYGWIN sshd service" to run as the new "sshdproc"
user.
10. At the cygwin command prompt type 'mkpasswd -l |grep sshdproc >>
/etc/passwd <enter>'
11. Type 'touch /var/log/sshd.log <enter>'
12. Type 'chmod 644 /var/log/sshd.log <enter>'
11. Type 'chown sshdproc /var/empty /var/log/sshd.log /etc/ssh_*
<enter>'
12. Type 'cygrunsrv --start sshd <enter>'

That should be it.. Hope this helps! :)

Best,
Mark J. de Jong



[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2003-09-23 18:55 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-15 19:30 SSHD, Cygwin and Windows 2003 Mark J de Jong
2003-09-16 10:26 ` Manipulating user privileges (was Re: SSHD, Cygwin and Windows 2003) Corinna Vinschen
2003-09-16 11:38   ` Brian Dessent
2003-09-16 12:57     ` Corinna Vinschen
2003-09-18  0:19   ` Chris Rodgers
2003-09-18  7:57     ` Corinna Vinschen
2003-09-22 21:10       ` Chris Rodgers
2003-09-23  8:41         ` Corinna Vinschen
2003-09-23 13:26           ` Igor Pechtchanski
2003-09-23 14:14             ` Corinna Vinschen
2003-09-23 14:22               ` Igor Pechtchanski
2003-09-23 18:42                 ` Hannu E K Nevalainen (garbage mail)
2003-09-23 18:56               ` Chris Rodgers

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