From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: poti@potis.org Newsgroups: gmane.emacs.help Subject: Re: NTEmacs + plink Date: Tue, 12 Jun 2007 19:44:31 -0400 Message-ID: <20070612234431.GA26155@mail.potis.org> References: <1179363834.155446.234830@q75g2000hsh.googlegroups.com> <20070610214402.GB21395@mail.potis.org> <20070611054613.GA22370@mail.potis.org> <87bqfleyhe.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1181691898 10138 80.91.229.12 (12 Jun 2007 23:44:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 12 Jun 2007 23:44:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Michael Albinus Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 13 01:44:56 2007 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 1HyG2i-0004Vr-II for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Jun 2007 01:44:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyG2h-0003uI-Rt for geh-help-gnu-emacs@m.gmane.org; Tue, 12 Jun 2007 19:44:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyG2S-0003tz-Nh for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 19:44:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyG2Q-0003tW-97 for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 19:44:39 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyG2Q-0003tT-64 for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 19:44:38 -0400 Original-Received: from sitemail2.everyone.net ([216.200.145.36] helo=omta14.mta.everyone.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HyG2P-0001c9-MZ for help-gnu-emacs@gnu.org; Tue, 12 Jun 2007 19:44:37 -0400 Original-Received: from pop15.mta.everyone.net (bigiplb-dsnat [172.16.0.19]) by omta14.mta.everyone.net (Postfix) with ESMTP id 7809541A21; Tue, 12 Jun 2007 16:44:36 -0700 (PDT) X-Eon-Dm: pop15 Original-Received: by pop15.mta.everyone.net (EON-AUTHRELAY2 - 48f102f2) id pop15.465dfe40.26b88e; Tue, 12 Jun 2007 16:44:36 -0700 X-Eon-Sig: AQLTeK1Gby/klcFnrgIAAAAC,469f8c2946d1af9b420d0454c770d4aa Original-Received: by potis.org (nbSMTP-1.00) for uid 1000 poti@potis.org; Tue, 12 Jun 2007 19:44:31 -0400 (EDT) Content-Disposition: inline In-Reply-To: <87bqfleyhe.fsf@gmx.de> User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Linux 2.4-2.6 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:44985 Archived-At: On 21:58 Tue 12 Jun , Michael Albinus wrote: > poti@potis.org writes: > > > I have many difficulties with tramp. I use a non-standard ssh port and > > have hosts behind firewalls. From Windows something like > > /ssh:me@my.host.org#3322:/home/me/.emacs or > > That shall work, better even with plink. > > Passing firewalls depend on how you want to do it. Tramp 2.1 (not part > of Emacs 22.1) has introduced gateway methods, which are intented for > HTTP tunnels or socks servers. But you could also configure HTTP tunnels > directly in PuTTY, I guess. > > If it is something else, just tell me the kind of hops you need. We > could find the corresponding Tramp configuration then. > The line you quoted does in fact work from Windows. I did not have .emacs in that particular directory, causing some confusion. I have sent what appears to be a tramp specific problem in opening a remote directory to tramp-devel. Other than that, single hop seems to work. However, I still cannot figure out multi hop. Using /multi:plink:me@my.host.org#3322:me@host.org:/home/me/realfile.txt gets as far as Tramp: Found remote shell prompt on `plink' and then hangs emacs hard-- the window does not redraw in Windows and I must kill the process from task manager. Adding (add-to-list 'tramp-default-proxies-alist '("host\\.org#3322" nil "/plink:me@my.host.org#3322:")) (with or without the port numbers) to _emacs causes /plink:me@host.org#3322:/home/me/realfile.txt to get as far as Tramp: Opening connection for me@host.org#3322 using plink before hanging emacs in a similar way (waited more than 6 minutes to be sure). One difference is that in this crash, EMACS.EXE is taking 50% of cpu time, whereas in the previous it was idle and taking about 2K more memory. As my network is configured at the moment, the only service available is ssh. I can exchange keys between my.host.org and host.org, but not from the lab XP machines to anywhere else. I have the following in _emacs, and the startup sequence echoes the load command, so it is being read: (add-to-list 'load-path "C:/tramp/lisp") (load "C:/tramp/lisp/tramp.el") (setq tramp-default-method "plink") (nconc (cadr (assq 'tramp-login-args (assoc "plink" tramp-methods))) '(("bash" "-i"))) (setcdr (assq 'tramp-remote-sh (assoc "plink" tramp-methods)) '("bash -i")) (setq tramp-debug-buffer t) (setq tramp-verbose 10) tram-bug reports this: Emacs : GNU Emacs 22.1.1 (i386-mingw-nt5.1.2600) of 2007-06-02 on RELEASE Package: tramp (2.0.55) but the files in C:/tramp are 2.1.9 On Gentoo, using a suitably modified equivalent .emacs file, I first get an error that trampver could not be loaded. In fact, this was not created until I ran ./configure. Then I got the error Symbol's value as variable is void: tramp-gw-tunnel-method this is true on OSX emacs 22.0.52.1 as well as Gentoo x86 Emacs 21.4.1. make fails on OSX. On another Gentoo machine with Emacs 22.1 and tramp-2.1.9-r1 installed through the package manager, I have many many more apparently unrelated problems. I also tried this with a cross port of tramp to Windows using mingw32 and my x86 Gentoo machine, but still failed in the same way.