6 ms·
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 pack
by jefurii 11y 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.
- anurags 11y agoHave you looked at Sublime FTP? https://wbond.net/sublime_packages/sftp https://wbond.net/sublime_packages/sftp
- fatlasp 11y agoJust 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.)
- JonathonW 11y agoIf 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).
- whatnotests 11y agosshfs is the shit. And using a solid piece of work like sshfs vs having some one-off thing for sublime is much preferred.
- laumars 11y agoI 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).
- cbaleanu 11y agosshfs 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.
- ozten 11y agoIf 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.
- arclyte 11y agoI 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 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.