5 ms·
Just in case people are still making decisions about needing to use an editor because you are doing something over ssh. Learn about sshfs! Use your preferred e
by freshhawk 9y ago
Just in case people are still making decisions about needing to use an editor because you are doing something over ssh.
Learn about sshfs! Use your preferred editor (or any program) locally for files you have ssh access to. It's not the right solution for everything, but for me it is for most things.
- bobajeff 9y agoThat's a very good solution for accessing files remotely. However there are some environments where only a terminal and ssh client is available or useable (eg. Embedded devices). In addition sometimes you need to run things from the server.
- Spivak 9y agoYou don't even need sshfs. Both VIM and Emacs support network transparent file editing. :e scp://user@remote.tld/path/to/file C-x C-f /scp:user@remote.tld:/path/to/file But the real magic on Emacs is using dired remotely.
- jholman 9y agoI had to chuckle. On the one hand, this comment is brilliant, because it's a concise piece of esoteric information. High signal-to-noise! And even though I won't remember the details, I suspect that next time I have a use for this information, I'll remember enough to google it. On the other hand, if vi or emacs is the editor you want to use, you're almost certainly not the person who chooses their editor based on trying to figure out the least painful editor that'll work over SSH and will now be relieved to use micro (rather than one of those annoying options that's already there). Though maybe that was the joke. In which case, ya got me. Zing!
- edoceo 9y agoUsing sshfs and Atom will kill you. It recurse the entire project tree on open, big project is like 10min to open cause that FS is slow.
- freshhawk 9y agoDoes Atom touch every file or something? Maybe running a stat or calculating git status? It's not slow to get the full tree of a big directory (not any slower than you'd expect that to be over the network) but touching a lot of files does slow things to a crawl. As would any other way of doing that over the network, even using a more optimized network filesystem like samba or nfs would only be slightly better.
- rocqua 9y agoSome windows developers use ssh to get onto a linux box. In that case, sshfs might not fit too well.
- gkya 9y agoCan you run sth. like free or dmesg through sshfs or would you need a second connection?
- freshhawk 9y agoYou would need a second connection, I normally have a standard ssh connection open as well for things like that (as well as moving large files, running find in a large directory, or anything else that isn't reasonable to do on a fuse filesystem backed by remote files). The sweet spot is using your favorite editor with all the plugins seamlessly (I prefer it to remote access plugins or builtins) or any other similar "I need to view/edit these files" use case.