From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de Newsgroups: gmane.emacs.help Subject: Re: emacsclient over ssh Date: Thu, 25 Jun 2009 09:28:24 +0200 Message-ID: <20090625072824.GA6456@tomas> References: <87r5x9g780.wl%anselm.helbig+news2009@googlemail.com> <87k530538o.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; x-action=pgp-signed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1245914755 16709 80.91.229.12 (25 Jun 2009 07:25:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 25 Jun 2009 07:25:55 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Harry Putnam Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 25 09:25:48 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 1MJjLA-0005bt-78 for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2009 09:25:48 +0200 Original-Received: from localhost ([127.0.0.1]:44860 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJjL9-0008K1-Ku for geh-help-gnu-emacs@m.gmane.org; Thu, 25 Jun 2009 03:25:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJjKo-0008Jt-KW for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 03:25:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJjKj-0008JV-Sc for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 03:25:26 -0400 Original-Received: from [199.232.76.173] (port=45238 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJjKj-0008JS-Mk for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 03:25:21 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:54743) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MJjKj-0006Dd-86 for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 03:25:21 -0400 Original-Received: from alextrapp1.equinoxe.de ([217.22.192.104] helo=www.elogos.de) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJjKi-0006ew-Ca for help-gnu-emacs@gnu.org; Thu, 25 Jun 2009 03:25:20 -0400 Original-Received: by www.elogos.de (Postfix, from userid 1000) id 2972290069; Thu, 25 Jun 2009 09:28:24 +0200 (CEST) Content-Disposition: inline In-Reply-To: <87k530538o.fsf@newsguy.com> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65493 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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=20 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 ;-) Regards - -- tom=C3=A1s -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFKQycYBcgs9XrR2kYRAiEzAJ0Rk/Vj0hiR15Qw1/dp49YUBFIb+QCffpcc rbEd283dkeQc2B3rJ0jdfRM=3D =3DGl3r -----END PGP SIGNATURE-----