SSH通过emacs的壳呢?(ssh through emacs shell?)

2019-08-02 23:15发布

我不知道是否有任何人可以通过Emacs外壳使用ssh。 我能够与远程机器连接,但我无法打开文件,查看使用“emacs的文件名”为emacs的/编辑“终端类型‘哑’没有强大到足以运行emacs的”(通常emacs的将控制台时内打开通过终端连接)。

这是一个坏主意,试图以这样的方式来使用emacs或这可能有一些修正? 非常感谢!

Answer 1:

A couple of ideas

  • Source the .bashrc explicitly via . ~/.bashrc and/or rearrange your bash init files and ~/.profile so that this gets loaded inside the emacs shell; then running ssh inside the Emacs shell works just fine
  • Use the emacs-specific Tramp mode to access remote files via ssh inside your local Emacs -- this is useful if you just need to update/touch/edit a remote file so you would not need to open a remote emacs inside the ssh session started from inside your local emacs.


Answer 2:

它可能无法在第一眼明显,但eshell ,即在的Emacs Lisp实现的外壳正常工作与tramp

Welcome to the Emacs shell

~ $ uname -a
Linux local-machine 2.6.30-1-686 #1 SMP Thu Jul 30 14:45:30 UTC 2009 i686 GNU/Linux
~ $ cd /ssh:user@remote-machine:~
/ssh:user@remote-machine:/home/user $ uname -a
Linux remote-machine 2.6.18-6-686 #1 SMP Thu Aug 20 21:56:59 UTC 2009 i686 GNU/Linux
/ssh:user@remote-machine:/home/user $ 


Answer 3:

Emacs有长期模式是完全成熟的终端仿真器,你可以在Emacs中运行的Emacs。 您在终端上运行的东西都会在长期模式下运行

此外Emacs有流浪汉模式,可以通过ssh打开的文件。


/scp:user@ipOrHost#port:/

它将传输文件来回。 您只需编辑它们,你会编辑本地文件。

无需X11转发或其他诡计。



Answer 4:

你可以使用SSH的X转发到运行远程Emacs和在本地计算机上显示出来。
我用的Xming X服务器 ,当我在Windows

你可以安装使用ssh远程文件系统 ,然后打开本地为正常。
为此,我使用ExpanDrive (商业应用)时,在Windows

你可以使用emacs 昂热FTP通过SSH可以通过FTP和SSH打开远程文件。
我用这与Cygwin的 Windows上时



Answer 5:

我一直在挣扎Xming的,其工作,但我的互联网连接是不是最快的我的emacs或任何X应用程序甚至显示出来之前要等待更多的30秒。 通过它打开后会冻结不时缓冲区也SCROLLING =>很烦人

尝试无机 (nxserver-的FreeNX服务器/客户端)。 有免费版服务器,绝对最好最快的解决方案时要连接到一台Linux机器和使用的xterm和emacs X上它会立即显示并响应如此之快。 即便是过了:-)客户一个非常缓慢的连接可用于Windows,Mac OS,Linux的



Answer 6:

对于SSH Emacs的选项:CX CF / SSH:用户@主持人:/家庭/路/

仅供参考: 通过SSH和须藤使用Emacs打开文件



文章来源: ssh through emacs shell?
标签: emacs ssh