Tom Roche <[email protected]> writes: Hi Tom,
> 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 I thought the patterns after "Host" must be separated by a comma, but maybe I'm wrong. > 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 That's exactly what I'm doing every single day. I'm running a more recent Tramp version, but this shouldn't matter. > 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? It shall do it out of the box. If it doesn't, show the error messages. And since I'll ask it next round anyway :-) please set tramp-verbose to 6, before running your test. > and thanks again for this brilliant package, Tom Roche <[email protected]> Best regards, Michael. _______________________________________________ Tramp-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/tramp-devel
