Installing the SFTP Package
-
Open Sublime Text.
-
Go to Tools → Command Palette.
-
Type
Install Packageand select Package Control: Install Package. -
Search for SFTP and install it.
Editing Files Directly on the Server
-
In Sublime Text, go to File → SFTP/FTP → Setup Server.
-
A configuration file opens. Update it with your details:
Json { "type": "sftp", "host": "example.com", "user": "username", "password": "yourpassword", "port": 22, "remote_path": "/home/username/public_html" }-
Replace
example.comwith your domain or server hostname. -
Replace
usernamewith your cPanel username. -
Replace
yourpasswordwith your cPanel password. -
Adjust
portif your account uses a custom SSH port.
-
-
Save the file with a descriptive name (e.g.,
ruachost.sftp-config.json). -
Browse the server, open a file, and edit it directly.
-
Save (Ctrl+S) → Sublime uploads the changes instantly.
Publishing Files to the Server
-
Open your local project folder in Sublime (File → Open Folder).
-
Right-click the folder in the sidebar → SFTP/FTP → Map to Remote.
-
Configure the connection (similar to above).
-
Once mapped, you can:
-
Upload File → Right-click a file → SFTP/FTP → Upload File.
-
Download File → Right-click a file → SFTP/FTP → Download File.
-
Sync Folder → Keep local and remote directories in sync.
-