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: Re: remote file editing over ssh with emacs 22.3.1 on Windows Date: Sat, 16 May 2009 17:59:40 +0100 Message-ID: <4A0EF0FC.2020608@simplistix.co.uk> References: <4A02A04F.6010307@simplistix.co.uk> <83hbzwdazt.fsf@gnu.org> <0F841C30-5A42-4F96-95CE-49FA51BDBDB6@digg.com> <4A04A18F.2020404@simplistix.co.uk> <833abedact.fsf@gnu.org> <4A0543A3.9000007@simplistix.co.uk> <83y6t6bp8l.fsf@gnu.org> <4A05C052.10607@simplistix.co.uk> <83bpq2ytya.fsf@gnu.org> <87fxfbibjr.wl%anselm.helbig+news2009@googlemail.com> 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 1242493239 8188 80.91.229.12 (16 May 2009 17:00:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 May 2009 17:00:39 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org >> Emacs Help" To: anselm.helbig+news2009@googlemail.com Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 16 19:00:32 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 1M5NEu-000373-Qz for geh-help-gnu-emacs@m.gmane.org; Sat, 16 May 2009 19:00:01 +0200 Original-Received: from localhost ([127.0.0.1]:53968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5NEu-0000k7-0P for geh-help-gnu-emacs@m.gmane.org; Sat, 16 May 2009 13:00:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M5NEb-0000k2-13 for help-gnu-emacs@gnu.org; Sat, 16 May 2009 12:59:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M5NEZ-0000jq-KV for help-gnu-emacs@gnu.org; Sat, 16 May 2009 12:59:39 -0400 Original-Received: from [199.232.76.173] (port=39226 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5NEZ-0000jn-HB for help-gnu-emacs@gnu.org; Sat, 16 May 2009 12:59:39 -0400 Original-Received: from server1.simplistix.co.uk ([89.151.125.140]:45831) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M5NEY-00082X-RF for help-gnu-emacs@gnu.org; Sat, 16 May 2009 12:59:39 -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 426BE4F8079; Sat, 16 May 2009 17:59:38 +0100 (BST) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87fxfbibjr.wl%anselm.helbig+news2009@googlemail.com> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:64496 Archived-At: Anselm Helbig wrote: > You do it something like this: > > (add-to-list 'tramp-default-proxies-alist > '("\\`host.example.com\\'" nil "/ssh:remoteuser@%h:")) > > And then > > C-x C-f /sudo:privilegeduser@host.example.com:/ Okay, I haven't tried this, but that's because it appears I need to add code to my .emacs file for every username/hostname combination that I want to log in to. Is there no way I can specify both the username to use to log in with *and* the username to sudo to as part of the C-x C-f process? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk