From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Riley Newsgroups: gmane.emacs.help Subject: Re: emacsclient over ssh Date: Wed, 24 Jun 2009 00:09:38 +0200 Organization: aich tea tea pea dicky riley dot net Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245796851 5271 80.91.229.12 (23 Jun 2009 22:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Jun 2009 22:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 24 00:40:44 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MJEfR-0003ve-UL for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Jun 2009 00:40:42 +0200 Original-Received: from localhost ([127.0.0.1]:60241 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJEfR-0000c6-BY for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Jun 2009 18:40:41 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!weretis.net!feeder2.news.weretis.net!eternal-september.org!news.motzarella.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 53 Original-X-Trace: news.eternal-september.org U2FsdGVkX1+qVzC8aobjvlFi57c/l7+vtOuWKzaQXj6ev/EKyFtpnKA6jjQgTQee7PnPBO8n5UAzvKYpG7Y9QkQj9nUrdN64RIihkuHO200bFuSr2lHmk2pKqLJQBAUh70twIyBqRIw= Original-X-Complaints-To: abuse@motzarella.org Original-NNTP-Posting-Date: Tue, 23 Jun 2009 22:09:39 +0000 (UTC) X-Auth-Sender: U2FsdGVkX18iHk2UYLDSawCRzxz3qMQ/udTVFV5fdk9uEF3RLVnOnw== Cancel-Lock: sha1:f5a2clcbBi1i7dzpfPwNBg8xt8k= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.95 (gnu/linux) Original-Xref: news.stanford.edu gnu.emacs.help:170246 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:65463 Archived-At: Harry Putnam writes: > Can I get some guidance on this: > > I want to run emacsclient on localhost but connect to emacs-server > running running on remotehost. > > is there syntax for the emacsclient -s flag to go thru ssh to the > remote emacs-server > > maybe something like emacsclient -s host:server -c > > If this is the wrong way to go maybe someone can tell me how its done. > So far I've just been doing ssh user@host > Then run emacsclient on the remote... but of course I'm then limited > to a console emacs. Possibly just enable x forwarding? Google will help with that. Probably something like /etc/ssh/sshd_config and "X11Forwarding yes" Then if you have the server running on hermes for example your command could be I guess: ssh hermes 'emacsclient -c filename' > > ssh to linux from opensolaris and then running emacs has a number of > problems that need solving for that to be handy. I guess having to do > with what shell you are in and `stty' setting and other things I haven't > thought of. > > At any rate a console emacs arrived at that way is a pain in the but > to use. Its fine for normal file/directory work... but I want to > access an emacs/gnus session running on the remote emacs-server. And I > want the emacsclient to run in X on the localhost. > > Both remote and localhost are running X. > > The end result I'm after is to be able to access an emacs/gnus session > that is running on a specific host from any of several hosts on the > home lan. > > Someway... I want to end up with an emacsclient running in X and > connected to a server on remotehost. > > > --