I am trying to edit a remote file in Emacs and I am having problems getting documentation and previous SO questions to do what I want.
I work remotely, from different places, and I want to edit files on the Foo server. The Foo server is not accessible directly from the Internet, but there is a server panel, and Foo accepts connections from Bar. I can count on reaching the Bar, and the Bar can count on reaching the Fu.
The Tramp documentation tells me what I need to add to the list of Tramp proxies so that it looks like this:
(add-to-list 'tramp-default-proxies-alist
("foo_host" "seanm" "/ssh:seanm@bar_host"))
However, when I try to do this, it does not work, and I get incomprehensible error messages.
How can I explicitly refer to Foo? There is no DNS server that knows how to find Foo from its hostname, and the IP address of Foo is in a private space of 10.0.0.0/8. I do not want to refer to Foo on this IP address because it may run into hosts on other 10.0.0.0/8 networks that I can visit. Like kludge, I added the Foo file to Bar / etc / hosts, but that didn't seem to work. Is there a better solution?
What quoting rules do I need to adhere to? The examples I see use both double quotes and tick-and-single quotes, the latter apparently requiring a double backslash. I don’t understand what is going on there - it seems that there are several levels of parsing that this line will scroll.
, " ". -, C-x C-f /su::/path/to/file?
.
: , emacs "" . , - , , .