help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: remote file editing over ssh with emacs 22.3.1 on Windows/Mac


From: Chris Withers
Subject: Re: remote file editing over ssh with emacs 22.3.1 on Windows/Mac
Date: Sat, 30 May 2009 13:26:06 +0100
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

Michael Albinus wrote:
Anselm gave you several hints for configuration of ssh. Unfortunately,
you do not run ssh but putty.

Tramp supports a method called "plinkx" (since Tramp 2.1.10, I
believe). This is used to take putty session names, instead of host
names.

yep, that was the missing, thank you!

So for every remote host you want to access, you might create a putty
session, which includes the host and user names. Let's call such a putty
session "somehost", with host name "somehost.somedomain" and user name
"cwithers". Likely, you have done this already.

Than you can add two rules:

  (add-to-list 'tramp-default-proxies-alist
    '(nil "\\`root\\'" "/plinkx:%h:"))

  (add-to-list 'tramp-default-proxies-alist
    '("\\`localhost\\'" "\\`root\\'" nil))

I think this second one is redundant, right?
(as I'm on Windows, sudo'ing to localhost is a bit of a no-go ;-) )

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
           - http://www.simplistix.co.uk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]