From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: emacsclient over ssh Date: Thu, 25 Jun 2009 06:38:37 -0500 Organization: Still searching... Message-ID: <87d48s4k76.fsf@newsguy.com> References: <87r5x9g780.wl%anselm.helbig+news2009@googlemail.com> <87k530538o.fsf@newsguy.com> <20090625072824.GA6456@tomas> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245929969 29386 80.91.229.12 (25 Jun 2009 11:39:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2009 11:39:29 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 13:39:22 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 1MJnIX-0003VU-KK for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2009 13:39:21 +0200 Original-Received: from localhost ([127.0.0.1]:39502 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJnIW-0007bi-Vs for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2009 07:39:21 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJnIB-0007bZ-24 for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 07:38:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJnI6-0007Zw-IG for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 07:38:58 -0400 Original-Received: from [199.232.76.173] (port=52010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJnI6-0007Zt-B8 for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 07:38:54 -0400 Original-Received: from main.gmane.org ([80.91.229.2]:36671 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MJnI5-0001zq-OH for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 07:38:54 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1MJnI1-0007Sz-FZ for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 11:38:49 +0000 Original-Received: from c-98-215-178-110.hsd1.in.comcast.net ([98.215.178.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Jun 2009 11:38:49 +0000 Original-Received: from reader by c-98-215-178-110.hsd1.in.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 25 Jun 2009 11:38:49 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-215-178-110.hsd1.in.comcast.net User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.0.95 (gnu/linux) Cancel-Lock: sha1:1OTz2i2EwFybJK6V+PhJUqcZmzo= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:65496 Archived-At: tomas@tuxteam.de writes: > On Wed, Jun 24, 2009 at 11:47:19PM -0500, Harry Putnam wrote: > > [...] > >> Well, like I mentioned in OP.. I want to be able to tap into a gnus >> session running on the remote...You can't do that with tramp [...] > >> Various other aggravations too. > > Have you thought of tunneling the emacs client <--> server connection > through SSH? > > Not tried yet, and I'm not sure whether there is'nt any better way -- > (gurus invited to chime-in ;-) but that is a rough sketch of how I would > proceed: > > (1) Start Emacs server on your server machine, tell it to listen on TCP: > emacs --daemon --eval '(setq server-use-tcp t)' > (of course, typically you wouldn't use --eval in the command line, > but rather put (setq ...) into some suitable startup file) > Now the Emacs daemon is running and accepting connections via tcp. > Maybe you can access it directly from your local network. If > security is enough, you might skip step (3). > > (2) Transfer the file ~/.emacs.d/server/server to your client machine. > It contains (among other things) a cookie which the client has to > present to the server to appease the dogs at its entrance. > > (3) Among those "other things" there is a server address and port > number. With some shell magic, create a shell command along the > lines of > ssh -Llocalhost::localhost: > where you choose and extract from the file > in (2) above > Note that this step is only strictly necessary if you don't want > to have your Emacs server listening in your home net (you'll have > to dissuade it from doing so by some other means, though). > > (4) Give your client in the client machine the server cookie from (2). > If you have done (3) and if and differ, > you might have to edit the cookie file: > emacsclient --server-file > > Of course, if you are more fluent in elisp, you might substitute the > shell magic above with sufficient elisp magic. It's just more magic. > > (5) Let us know whether that works ;-) Ahhh no... I think I'll pass. A simple edit in /etc/sshd_config was all I needed.