Is the editor Atom able to open projects on a remote server?

后端 未结 4 1931
孤街浪徒
孤街浪徒 2021-02-01 07:46

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

Now I\'m using SSH on Host OS to access a Guest OS (sa

4条回答
  •  庸人自扰
    2021-02-01 08:33

    Complement to Remco's sshfs answer above:

    If you use different users in the client and server hosts, consider using the 'idmap' option of sshfs.

    I use different users in my working host and in the development or testing VMs.

    Example:

    using option '-o idmap=user' will automatically translate UID/GID of the remote host to the UID/GID of the connecting user in the local host

    Files owned by remote user (devuser) in remote host (devhost1) will appear as belonging to the connecting user (locuser) in local host (clienthost)

    locuser@clienthost:~$ sshfs devuser@devhost1:/var/www  ~/dev/www -o idmap=user
    
    locuser@clienthost:~$ ls -lR ~/dev/www
    (...)
    -rw-rw-r-- 1 locuser locuser   269 abr  1 11:37 index.html
    -rw-rw-r-- 1 locuser locuser   249 abr  3 03:59 page1.html
    -rw-rw-r-- 1 locuser locuser  1118 abr  2 15:07 page2.html
    -rw-rw-r-- 1 locuser locuser   847 abr  3 03:20 page3.html
    (...)
    

    The mapping can also be made explicit (userx <-> usery). For more details see man sshfs

提交回复
热议问题