This is the mail archive of the cygwin 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]
Other format: [Raw text]

Personal use not permitted: (was Re: Pop up GUI remotely via SSH)


trimat wrote:
If I create the service with the command /ssh-host-config/ (and
then set up user and privileges) I can start remotely from SSH
a program without the possibility to see its GUI.

----

	Where are you expecting the output to come out?  Where it is
executing or where you ran ssh from?  Windows can't do the latter,
it can only do the former, and then only if you get all the security
tokens setup right (never have done it).  They used to have problems
where people would start programs from remote machines and popup
output on a remote PC, and people on the remote PC would respond to
it thinking it was a local system message (when it was really
a remote cracker trying to get their password).


If I modify the /sshd/ service by Windows Services logging on as
"Local System account" with "Allow service to interact with
desktop" option enabled, I get an error: "The CYGWIN sshd service
on Local Computer started and then stopped. Some services stop
automatically if they are not in use by other services or
programs".

---

	Similar problem as above.  You can't forward remote output of
individual Windows programs.  You could try to start
a remote-desktop session -- and those have the ability to run
programs on startup that will have their output go to the person who
ran remote desktop, but what you seem to be asking for is like when
I "ssh" into a linux box and start 'gvim', it runs 'gvim' and
displays it on my local cygwin box.

	That is all premised on ssh automatically forwarding any attempts
to access the remote X-server to your local box, where they will try
to contact your local X-server.

I am not aware of Xserver, how can I check this?

---

	Read up on 'X11' on the web/google.  It is the main way unix/linux
boxes run programs remotely and have the output displayed locally.
If you know nothing about 'X', or how output from 'ssh' run programs
is forwarded through an encrypted connection back to your machine to
connect to the X-server (called Xwin.exe on cygwin), then you need
to learn alot more about what you are attempting to do -- much more
than I can relate in a "short" email.

	Windows was designed around a 1 person/computer system, with
allowances for more than 1 person with the server editions of
windows.  If someone is logged into a windows PC (non-server
edition), you cannot log into it with remote-desktop, for example,
without it either blocking you (because someone is already using the
"1" Windows output channel), or "2" forcing the remote user to
log-out -- which can then allow you to create a 'remote desktop
session' where the remote pc's desktop is forwarded to you.

	If you had a server and used "thin-clients" that would only be
used for keyboard and display (no local processing), MS didn't want
you to be able to grab the 100-cheap clients and all log into the
powerful server and share applications (like all of them running
their own version of WORD) -- because, instead, they wanted to sell
100-copies of Windows and
100 copies of WORD - even if only 1-5 out of 100 would use WORD at
any point in time.  They compromised on server editions by allowing
people to by "seats", which allow a "small", fixed number of users
to run an application (or to access the server remotely) -- but they
keep track of each user who uses a 'remote desktop', and accesses
a program like WORD, to make sure you only can use the number of
"remote sessions" you paid for.

	If you want a multi-user computer, you need to run linux or
something else.  But both apple and MS have gone with the
1-user-1-licence model.

	The recent push to convert linux to use systemd -- is all about
reducing the functionality of linux to require the same thing -- so 1 system monitor (systemd) can keep track of how many users are
using "licensed seats" --- so vendors can force you to pay 10-100
times for the same program.  It's also about locking down linux so
that you can't easily your own programs to get around such licensing
mechanisms (you'd have to "jailbreak" your computer -- as is done
with smartphones these days, to allow you to run what you want on
your own computer).

	If you want the remote display thing, use 'X' while it is still
available and not replaced by some encrypted-proprietary (but open
source) replacement that restrict what you can do on your computer
(effectively reducing it to a "console" -- as in gaming console that
only runs the programs that the manufacturer permits).




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


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