Sublime Forum

Best way to edit files on a remote VPS from Sublime Text?

#1

I do a lot of small fixes on client sites hosted on a VPS in Canada. Because of PIPEDA, BC rules and Quebec Law 25, I try to avoid copying client data onto my laptop, so I want a clean way to work remotely from Sublime Text. What I do now:

  1. Keep the code in Git and edit locally, then deploy with a pull on the server.
  2. Use an SFTP package only for quick one-off edits, never for whole projects.
  3. Connect with SSH keys and an SSH config alias instead of saved passwords.
  4. Never edit live production files directly; I use a staging copy on the same server.
  5. Exclude uploads, logs and databases from any sync so client data stays on the server.
  6. Watch line endings and file permissions, which caused most of my odd bugs.
  7. Use a terminal package or a separate terminal for running commands on the server.

Is there a better workflow people here use for remote editing, such as mounting the server with sshfs?

0 Likes