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

查看:78
本文介绍了编辑器 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.

现在我在 Host OS 上使用 SSH 来访问 Virtualbox 上的 Guest OS(比如 Red Hat Enterprise Linux、RHEL),有没有办法让位于 Host 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天全站免登陆