delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/21/14:21:26

X-Spam-Check-By: sourceware.org
Message-ID: <467AC190.26658DC4@dessent.net>
Date: Thu, 21 Jun 2007 11:21:04 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin and OS X
References: <11238408 DOT post AT talk DOT nabble DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

puce1 wrote:

[ X11 related questions like this should go to the cygwin-xfree list
instead. ]

> Can someone tell me if I can do this (easily).
> 
> I have Cygwin on my XP machine - and I want it to display a terminal on my
> OS X machine.
> 
> Do I have to have X11 running on the MAC or is there an easier way ??

Sure:

On Cygwin machine:
1. Install packages openssh,cygrunsrv,xterm (and all dependencies)
2. run ssh-host-config -y
3. start the ssh daemon (cygrunsrv -S sshd)

On OS X machine:
1. start X server
2. open a terminal, make sure DISPLAY is set (e.g. to :0)
3. ssh -Y cygwinusername AT cygwinmachinename
4. run xterm, e.g. "xterm &", and it should appear on the OS X desktop

(you can combine 3 and 4 as just 'ssh -YN user AT host xterm')

Note that your Cygwin machine is now running a ssh daemon that allows
people to ssh in, so make sure all accounts have good passwords. 
Alternatively, you can disable password authentication in
/etc/sshd_config and use only public key auth.  To do this run
ssh-keygen on the OS X host if you haven't already, and then add the
public key (~/.ssh/id_[dr]sa.pub) to the ~/.ssh/authorized_keys of the
Cygwin host.

Brian

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019