X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; q=dns; s=default; b=XX35KjjDXCoB/Zo/X4mEad/qlaYp3DdpYWBFlXmOs+y uUp5K/7QpOkIJ4L8Y6SAEJctYQn/hQlJK43oK9itnVGfVzhebXu+RQkY532Me2V9 FlkuTcxkgitUqnLbSH1TgIE/FCWmsuzi37AGEBeRJkyH5U4zZD3bpvxk542J00/M = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; s=default; bh=LEpVPjKFnGMMZfLC/+ScvNFIE9I=; b=G3Q7OTd7fMXb/X+11 XmbOFNSFw/H5i8ruS2ag/kJA1CdtMo/X03QH53Tvsr7M98ezqdE9oVljZkEPFVGM aALqtyKdeAYKZ4scc6cbk7oDuyoxZ3yqvoa/+skUAYxHw6Vzq2g2o3OEWxNOCcYn zE/EqHc+Qcd86ddmv7OR2fo8PQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL,BAYES_50,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: Ishtar.hs.tlinx.org Message-ID: <56393741.2050906@tlinx.org> Date: Tue, 03 Nov 2015 14:37:53 -0800 From: Linda Walsh User-Agent: Thunderbird MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Personal use not permitted: (was Re: Pop up GUI remotely via SSH) References: <1445875669454-122269 DOT post AT n5 DOT nabble DOT com> <5637F743 DOT 3010602 AT tlinx DOT org> <1446543313272-122540 DOT post AT n5 DOT nabble DOT com> In-Reply-To: <1446543313272-122540.post@n5.nabble.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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