Installing the SFTP Package

  1. Open Sublime Text.

  2. Go to Tools → Command Palette.

  3. Type Install Package and select Package Control: Install Package.

  4. Search for SFTP and install it.

 

Editing Files Directly on the Server

  1. In Sublime Text, go to File → SFTP/FTP → Setup Server.

  2. 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.com with your domain or server hostname.

    • Replace username with your cPanel username.

    • Replace yourpassword with your cPanel password.

    • Adjust port if your account uses a custom SSH port.

  3. Save the file with a descriptive name (e.g., ruachost.sftp-config.json).

  4. Browse the server, open a file, and edit it directly.

  5. Save (Ctrl+S) → Sublime uploads the changes instantly.

 

Publishing Files to the Server

  1. Open your local project folder in Sublime (File → Open Folder).

  2. Right-click the folder in the sidebar → SFTP/FTP → Map to Remote.

  3. Configure the connection (similar to above).

  4. 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.

?האם התשובה שקיבלתם הייתה מועילה 0 משתמשים שמצאו מאמר זה מועיל (0 הצבעות)

Powered by WHMCompleteSolution