Remote editing with Atom (rmate, sshfs)
rmate
- Install rmate in remote.
- Install
remote-atom
as Atom package in local. - Configure "remote forwarding" of rmate port in local (local:port -> remote:port).
- Open Atom in local.
- Execute
rmate file.txt
in remote (ssh). Atom in local will show the file, and you can edit it.
rmate
cannot be used for Atom Tree View (Project View). But tree
command in ssh is useful for viewing project file entries.
treetree -L 1tree -L 1 -A
autossh -M 0 REMOTE
is also useful.
sshfs
# Macbrew cask install osxfusebrew install sshfs# Ubuntusudo apt install sshfs
sshfs REMOTE: MOUNT_POINT -o follow_symlinks
# Macdiskutil unmount MOUNT_POINT# Ubuntufusermount -u MOUNT_POINT