Michael Albinus wrote:
This shall be possible with Tramp 2.1. Which version do you use?

How do I find out what version I'm using?
If my version is too old, how do I upgrade?

The
Tramp 2.1 manual describes your case, for example here:

http://www.gnu.org/software/tramp/#Multi_002dhops

Okay, so after reading that, I added the following to my .emacs file:

;; shell-prompt-pattern stuff
(require 'tramp)

(add-to-list 'tramp-default-proxies-alist
             '(nil "\\`root\\'" "/ssh:%h:"))
(add-to-list 'tramp-default-proxies-alist
             '((regexp-quote (system-name)) nil nil))

I can now successful open things like /sudo::/etc/ to sudo open local files, and I can open remote files under my username with, eg, /myu...@thehost:~/, but if I try and open /sudo:thehost: I still get:

ad-Orig-error: Cannot connect to different host `thehost' with `su' connection method

If you do not want to add additional configuration to your .emacs,

I don't mind adding something like the above, I just don't want to have to add stuff *and* add ssh config in my .ssh file for each host I want to connect to. The holy grail for me is to be able to use any of the following:

/myu...@thehost:~/
/sudo:thehost:/
/sudo:different_user_to_my_local_u...@thehost:/

Chris

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


_______________________________________________
Tramp-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/tramp-devel

Reply via email to