如何使用emacs的ssh? [英] How do I use ssh from emacs?
本文介绍了如何使用emacs的ssh?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我通常使用终端连接到另一台服务器:
I normally connect to another server using the terminal using:
ssh username@xx.xx.xx.xx
但是,我一直在使用emacs,而且我想知道如果我可以连接到远程Red帽子服务器从emacs?
However, I have been using emacs a lot now, and I am wondering if I can connect to a remote Red Hat server from within emacs?
非常感谢任何建议,
推荐答案
p> Tramp模式是你的朋友。安装它,然后使用
Tramp mode is your friend. Install it, then use
C-x f RETURN /xx.xx.xx.xx.:~username/some/dir/somefile.txt
,文件将在您的本地会话中打开。 Emacs和Tramp将同步所有更新由于本地编辑回到服务器。
and the file will open in your local session. Emacs and Tramp will sync all updates due to your local editing back to the server.
这篇关于如何使用emacs的ssh?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文