[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
From: |
Richard Riley |
Subject: |
Re: remote file editing over ssh with emacs 22.3.1 on Windows |
Date: |
Sun, 10 May 2009 10:50:07 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) |
Anselm Helbig <anselm.helbig+news2009@googlemail.com> writes:
> At Sat, 09 May 2009 19:05:50 +0100,
> Chris Withers <chris@simplistix.co.uk> wrote:
>>
>> Peter Dyballa wrote:
>> > Once you're root on that system you don't really need to,
>>
>> Yes, it's root I want to sudo to.
>>
>> None of the servers I work with allow logging in as root.
>
> There's a feature in TRAMP to do just that. This used to be called
> "multi-hop" but now is configured with `tramp-default-proxies-alist';
> the documentation is still under (info "(tramp) Multi-hops"). Here's
> what I have in my .emacs to use it:
>
> (setq tramp-default-method "ssh")
>
> (eval-after-load "tramp"
> '(when (boundp 'tramp-default-proxies-alist)
> (add-to-list 'tramp-default-proxies-alist
>
> '("\\`\\(.*\\.example\\.com\\|somehost\\.example\\.org\\)\\'"
> "\\`root\\'"
> "/ssh:%h:"))))
>
> I set things like port and username In my .ssh/config:
>
> Host *.example.com
> User foo
>
> Host somehost.example.org
> User bar
> Port 666
>
> Now I can do C-x C-f /sudo:www.example.com:/ <RET> and work on the
> remote host as root.
>
> HTH,
>
> Anselm
Q: is it only emacs 23 where you don't have to mention sudo at all?
e.g I just do:
C-x C-f "/root@host:~/.bashrc"
and tramp does the rest.
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, (continued)
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, Peter Dyballa, 2009/05/09
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, Chris Withers, 2009/05/09
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, Peter Dyballa, 2009/05/09
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, Chris Withers, 2009/05/16
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, Peter Dyballa, 2009/05/16
- Message not available
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, Tim X, 2009/05/16
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, Chris Withers, 2009/05/25
- Message not available
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, Anselm Helbig, 2009/05/10
- Re: remote file editing over ssh with emacs 22.3.1 on Windows,
Richard Riley <=
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, Chris Withers, 2009/05/16
- Message not available
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, Anselm Helbig, 2009/05/16
- Re: remote file editing over ssh with emacs 22.3.1 on Windows, Reiner Steib, 2009/05/10