Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Networking 如何使用本地运行的emacs访问远程文件?_Networking_Ssh_Emacs_Remote Access - Fatal编程技术网

Networking 如何使用本地运行的emacs访问远程文件?

Networking 如何使用本地运行的emacs访问远程文件?,networking,ssh,emacs,remote-access,Networking,Ssh,Emacs,Remote Access,通常,要编辑我的文件,我需要ssh到主机sunfire,在该主机上,我需要ssh到另一台主机xcnc1。我的文件位于xcnc1上,我只能通过sunfire访问 我的问题是如何从本地机器访问xcnc1文件?使用带有临时代理的Tramp。类似于C-xc-f/ssh:user1@sunfire|宋承宪:user2@xnc1:/path/to/file。如果user1或user2与您的本地用户是同一个用户,您可以忽略它们。将Tramp与临时代理一起使用。类似于C-xc-f/ssh:user1@sunfi

通常,要编辑我的文件,我需要ssh到主机
sunfire
,在该主机上,我需要ssh到另一台主机
xcnc1
。我的文件位于
xcnc1
上,我只能通过
sunfire
访问


我的问题是如何从本地机器访问
xcnc1
文件?

使用带有临时代理的Tramp。类似于
C-xc-f/ssh:user1@sunfire|宋承宪:user2@xnc1:/path/to/file
。如果
user1
user2
与您的本地用户是同一个用户,您可以忽略它们。

将Tramp与临时代理一起使用。类似于
C-xc-f/ssh:user1@sunfire|宋承宪:user2@xnc1:/path/to/file
。如果
user1
user2
与您的本地用户是同一用户,您可以忽略它们。

Nice,向上投票;而且显然比我先前否决的答案要好;而且显然比我先前拒绝的回答要好。