[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
FR: syntactic sugar for 'sudo' multi-hops with .ssh/config
From: |
Tom Roche |
Subject: |
FR: syntactic sugar for 'sudo' multi-hops with .ssh/config |
Date: |
Mon, 15 Sep 2014 17:39:23 -0400 |
User-agent: |
GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.4) |
Allow me to make a feature request for the following, or tell me how to do
correctly what fails below:
I have ~/.ssh/config with a stanza (for a cloud machine for which I can't
easily set DNS) like
> Host 12.34.56.78 cloud c
> HostName 12.34.56.78
> Port 22
> User me
With TRAMP, I can open normal files with syntax like
/c:my_dir/my_file
(which still amazes me sometimes :-) And thanks to ad-hoc multi-hop, I can also
`sudo` files like
/ssh:c|sudo:12.34.56.78:/root/owned/path
... which is *almost* magic enough :-) What I'd prefer is, not to hafta
remember the hostname (or IP#, in this case)--i.e., I'd prefer to be able to do
/ssh:c|sudo:c:/path/to/file # fails in my emacs version='GNU Emacs 24.3.1' on
debian
Hence my Feature Request: could TRAMP be made smart enough to know, if it saw
/ssh:<.ssh/config token/>|sudo:<same .ssh/config token/>:/path/to/file
to use *both* the User and HostName (from ~/.ssh/config) in the first instance,
but *only* the HostName in the second instance?
Apologies if
* this is a FAQ, but I didn't see a match when casually DuckDuckGo-ing
* this is already done upstream (I tend to stay on packaged builds)
* the maillist is not the best way to do FRs, but I didn't see anything about
how to do FRs in the TRAMP User Manual (just bugs)
and thanks again for this brilliant package, Tom Roche <address@hidden>
- FR: syntactic sugar for 'sudo' multi-hops with .ssh/config,
Tom Roche <=