Hacker News new | ask | show | jobs
by jefurii 3747 days ago
Offtopic, but everytime I want to try Sublime I check to see if it can edit files on remote systems via SSH and it can't. Well you can if you install some package on the remote systems but that's clunky and doesn't count. I'll continue using Emacs.
4 comments

If you're on a *nix, I'm rather fond of sshfs for this purpose: it's a FUSE filesystem that lets you mount a remote folder over SSH, and from there you can work with files using whatever local editor or tools you want to.

It's available through apt-get in Ubuntu and Homebrew on OSX (and probably other package managers, too), and should work anywhere that FUSE does. Doesn't require any special configuration on the server-side except to have SSH enabled (and not be doing anything weird that blocks SFTP, I guess).

I second the sshfs recommendation. Most of my remote development is using a combination of tmux (as an IDE for remote CLI tools) and sshfs (for GUI IDEs).
sshfs or winSCP on windows are great, beats text mode for me especially when editing files on stable known hosts. I wouldn't bother using either for ephemeral instances though.
sshfs is the shit. And using a solid piece of work like sshfs vs having some one-off thing for sublime is much preferred.
Have you looked at Sublime FTP?

https://wbond.net/sublime_packages/sftp

Just chiming in with anecdotal evidence that I've used this package to edit remote files for years. It might just be some sort of scp mechanism though; can't remember as I haven't used it for quite some time (for unrelated reasons.)
I tried sshfs but it's a bear when searching a large remote repository (dev environment is on a t2.micro EC2 instance with a repository of a couple hundred megs, including assets).

What I've been doing instead is using the rsync-ssh plugin https://github.com/davidolrik/sublime-rsync-ssh

I keep a local copy of the repo, which allows me to work even without access to the cloud dev environment and makes searching orders of magnitude quicker, but still saves changes to the remote environment whenever I save a file in Sublime.

It's not perfect, but works well enough for my current workflow, so thought I'd share.

If you're the only person editing the files, one-way rsync has worked well for me. You can watch for changes and automatically push them over.