From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Withers Newsgroups: gmane.emacs.help Subject: remote file editing over ssh with emacs 22.3.1 on Windows Date: Thu, 07 May 2009 09:48:15 +0100 Message-ID: <4A02A04F.6010307@simplistix.co.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1241695329 15825 80.91.229.12 (7 May 2009 11:22:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 7 May 2009 11:22:09 +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 May 07 13:21:59 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 1M21fn-0003e4-KY for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2009 13:21:56 +0200 Original-Received: from localhost ([127.0.0.1]:38980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M21fm-000680-Vm for geh-help-gnu-emacs@m.gmane.org; Thu, 07 May 2009 07:21:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M1zH7-0000vx-BH for help-gnu-emacs@gnu.org; Thu, 07 May 2009 04:48:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M1zH4-0000vl-S5 for help-gnu-emacs@gnu.org; Thu, 07 May 2009 04:48:16 -0400 Original-Received: from [199.232.76.173] (port=54665 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M1zH4-0000vi-Mu for help-gnu-emacs@gnu.org; Thu, 07 May 2009 04:48:14 -0400 Original-Received: from server1.simplistix.co.uk ([89.151.125.140]:38269) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M1zH3-0007rI-UQ for help-gnu-emacs@gnu.org; Thu, 07 May 2009 04:48:14 -0400 Original-Received: from [192.168.1.15] (cust162-dsl93-89-128.idnet.net [93.89.128.162]) by server1.simplistix.co.uk (Postfix) with ESMTPSA id 7C6EB4F8061 for ; Thu, 7 May 2009 09:48:11 +0100 (BST) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Mailman-Approved-At: Thu, 07 May 2009 07:20:39 -0400 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:64221 Archived-At: Hi All, I'm trying to get remote editing working using ssh. I've copied in the the relevant tramp stuff from http://www.redantigua.com/emacs-win.html ...to my ~/_emacs files, although I'm using the tramp that came with emacs 22.3.1, not a separately downloaded one. The first problem I hit was that the remote machine's key was not in the registry, so tramp/plink stalled with the following in its buffer: """ The server's host key is not cached in the registry. You have no guarantee that the server is the computer you think it is. The server's rsa2 key fingerprint is: ssh-rsa 2048 cc:7f:79:8a:20:04:b7:39:6c:a7:3e:4f:ea:4f:b1:e3 If you trust this host, enter "y" to add the key to PuTTY's cache and carry on connecting. If you want to carry on connecting just once, without adding the key to the cache, enter "n". If you do not trust this host, press Return to abandon the connection. Store key in cache? (y/n) """ How can I interact with this to say "yes"? Anyway, I worked around that problem by connecting using plink.exe in a dos box and caching the key. This gets further now, but takes an awful long time with the message: 'tramp: Setting up remote shell' showing before bombing. Here's the chunk from the Messages buffer: tramp: Opening connection for cwithers@server1.simplistix.co.uk using nil... tramp: Waiting for prompts from remote shell tramp: Waiting 60s for prompt from remote shell tramp: Found remote shell prompt. tramp: Initializing remote shell Loading time-date...done tramp: Waiting 30s for remote `/bin/sh' to come up... tramp: Setting up remote shell environment apply: Couldn't `stty -inlcr -echo kill '^U'', see buffer `*tramp/plink cwithers@server1.simplistix.co.uk*' The tramp/plink buffer contains: stty -inlcr -echo kill '^U' $ $ Can someone point me to what's gone wrong and how I can fix it? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk