编辑器Atom能够在远程服务器上打开项目吗? [英] Is the editor Atom able to open projects on a remote server?

查看:501
本文介绍了编辑器Atom能够在远程服务器上打开项目吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Atom可以打开一个项目,并在左侧显示该项目的整个树,这是一个非常不错的功能.

Atom is able to open a project, and to show the whole tree of the project on the left side, a really nice feature.

现在我在主机OS上使用SSH访问Virtualbox上的来宾OS(例如Red Hat Enterprise Linux,RHEL),主机OS中是否有Atom可以打开位于RHEL上的项目的方法?

Now I'm using SSH on Host OS to access a Guest OS (say Red Hat Enterprise Linux, RHEL) on Virtualbox, is there a way of Atom located in Host OS to open a project located on RHEL?

推荐答案

是的!

您只需要配置sshfs,可以选择使用autofs.然后,您可以访问文件,就像它们存储在本地一样.我已经将它与Atom一起使用,并且可以无缝运行.

You just need to configure sshfs, optionally with autofs. Then you can access the files as if they are stored locally. I've used this with Atom and it works seamlessly.

$ sudo apt-get install sshfs

在本地挂载点上挂载远程目录

$ sshfs [user@]host:[dir] mountpoint

将其与autofs组合

以下链接提供了有关使用autofs进行设置的说明.

Combining it with autofs

The following link has instructions for a setup using autofs.

注意:这需要您为 root 用户设置SSH.

Note: This requires you to setup SSH for the root user.

http ://www.mccambridge.org/blog/2007/05/totally-seamless-sshfs-under-linux-using-fuse-and-autofs/

除该帖子外,我还添加了一些技巧,以获得更加无缝的体验.

Additionally to that post, I've added some tricks for an even more seamless experience.

通过将此SSH配置添加到/root/.ssh/config,我注意到了显着的性能提升:

I've noticed a significant performance boost by adding this SSH config to /root/.ssh/config:

Ciphers arcfour
Compression no

注意:这确实使连接的安全性降低.

Note: This does make the connection less secure.

如果将挂载点设置为/media中的目录,则挂载点将在文件浏览器中显示为磁盘.例如/media/sshfs.

If you set the mount point to a directory in /media, the mount point will show up as a disk in your file browser. For example /media/sshfs.

这篇关于编辑器Atom能够在远程服务器上打开项目吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆