public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* SSH access to desktop
@ 2016-04-06 20:42 Kevin Layer
  2016-04-07  7:46 ` Nick.Battle
  0 siblings, 1 reply; 3+ messages in thread
From: Kevin Layer @ 2016-04-06 20:42 UTC (permalink / raw)
  To: cygwin

I need to be able to SSH into a Windows machine with Cygwin installed
and be able to run Windows programs and see the Windows they create.
That is, when I run "notepad" I need to see the Window it creates.
And, I need multiple users to be able to do this.

In the past, I did this by having each user put an item in their
Startup folder that did:

   C:\cygwin64\usr\sbin\sshd.exe -p 8100

where the port, 8100 in this case, is different for each user.

The snag now seems to be:

$ /usr/sbin/sshd.exe -p 8100
/var/empty must be owned by root and not group or world-writable.
$ ls -l /var
total 4
drwxr-xr-x+ 1 layer          Domain Users   0 Mar 16 10:13 cache/
drwxr-x--x+ 1 Administrator  Administrators 0 Mar 16 10:08 empty/
drwxr-xr-x+ 1 layer          Domain Users   0 Mar 16 10:06 lib/
drwxrwxrwt+ 1 Administrators Administrators 0 Mar 16 15:08 log/
drwxrwxrwt+ 1 Administrators Administrators 0 Mar 16 10:51 run/
drwxrwxrwt+ 1 layer          Domain Users   0 Apr  2 00:42 tmp/
$


The "in the past" is on an older version of Cygwin that hasn't been
updated in a while.  The new machine, where this is not working, is
pretty up to date.

Ideas?
Thanks.

Kevin

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* RE: SSH access to desktop
  2016-04-06 20:42 SSH access to desktop Kevin Layer
@ 2016-04-07  7:46 ` Nick.Battle
  0 siblings, 0 replies; 3+ messages in thread
From: Nick.Battle @ 2016-04-07  7:46 UTC (permalink / raw)
  To: Kevin Layer, cygwin

> $ /usr/sbin/sshd.exe -p 8100
> /var/empty must be owned by root and not group or world-writable.
> ...
> drwxr-x--x+ 1 Administrator  Administrators 0 Mar 16 10:08 empty/

Try making the owner of this directory the same as the Windows user that is running the sshd service. I think this is a hard coded error message that says "root" in the expectation that this runs sshd. But that is not the case on Windows/Cygwin.

Cheers,
-nick

Unless otherwise stated, this email has been sent from Fujitsu Services Limited (registered in England No 96056); Fujitsu EMEA PLC (registered in England No 2216100) both with registered offices at: 22 Baker Street, London W1U 3BW;  PFU (EMEA) Limited, (registered in England No 1578652) and Fujitsu Laboratories of Europe Limited (registered in England No. 4153469) both with registered offices at: Hayes Park Central, Hayes End Road, Hayes, Middlesex, UB4 8FE. 
This email is only for the use of its intended recipient. Its contents are subject to a duty of confidence and may be privileged. Fujitsu does not guarantee that this email has not been intercepted and amended or that it is virus-free.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

* Re: SSH access to desktop
@ 2016-04-07 22:12 Kevin Layer
  0 siblings, 0 replies; 3+ messages in thread
From: Kevin Layer @ 2016-04-07 22:12 UTC (permalink / raw)
  To: cygwin

Here's what worked for me:

Ran ssh-host-config as administrator and took defaults, except
 priviledge separation => no
 install as a service => no

Then, I chown'd /var/empty to Administrator and was able to run
"sshd -p 8100" and ssh into the box.

More importantly, other users were able to start their own sshds, on
different ports, and also ssh into the box.


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

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

end of thread, other threads:[~2016-04-07 22:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-06 20:42 SSH access to desktop Kevin Layer
2016-04-07  7:46 ` Nick.Battle
2016-04-07 22:12 Kevin Layer

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