From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: x11 tunelling with putty to Xming Server on Windows machine Date: Fri, 15 Apr 2011 11:17:58 +0300 Message-ID: <8339lkq66h.fsf@gnu.org> References: <509451.89313.qm@web28206.mail.ukl.yahoo.com> NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1302855495 16776 80.91.229.12 (15 Apr 2011 08:18:15 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2011 08:18:15 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 15 10:18:11 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QAeEF-00045h-46 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Apr 2011 10:18:11 +0200 Original-Received: from localhost ([::1]:53171 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAeEE-0004L7-MK for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Apr 2011 04:18:10 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56183) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAeE8-0004KF-CZ for help-gnu-emacs@gnu.org; Fri, 15 Apr 2011 04:18:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QAeE7-0000M9-5G for help-gnu-emacs@gnu.org; Fri, 15 Apr 2011 04:18:04 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:37487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QAeE6-0000Lb-PW for help-gnu-emacs@gnu.org; Fri, 15 Apr 2011 04:18:02 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LJO00700PEYAA00@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 15 Apr 2011 11:18:01 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([77.127.31.148]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LJO006BUPPZIGC0@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Fri, 15 Apr 2011 11:18:01 +0300 (IDT) In-reply-to: <509451.89313.qm@web28206.mail.ukl.yahoo.com> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:80800 Archived-At: > Date: Thu, 14 Apr 2011 19:00:28 +0100 (BST) > From: Jannis > > I am trying to connect with Emacs (and ESS) via ssh to a remote machine but could not establish x11 tunelling. I managed to install and configure Putty so that I can use plink to establish the connection by running: > > M-x ssh RET RET RET > > In my .emacs file I added: > > (require 'ssh) > (setq ssh-program "plink") What is ssh.el? It's not part of Emacs, AFAICT. > I run a Xming Server on the Windows machine and installed ssh.el. I would now like to tunnel x11 Windows over the ssh connection. How would I set this up? I probably just need to add -X to the plink command but do not know how and where? I have no idea how to do that via ssh.el, perhaps there's some variable there that lets you specify command-line options to plink. Then you can put "-X" there. Alternatively, define a PuTTY session for that machine (by launching the PuTTY configure dialog), and check the "Enable X11 forwarding" checkbox on the SSH->X11 tab. I think this will give you what you want.