Atom Code Editor

SFTP Setup

To set up SFTP for the Atom code editor, you need to install and configure the Remote-FTP package. Here are the steps to do so:

  1. Install Atom: If you haven’t already, download and install Atom from its official website.
  2. Install Remote-FTP Package:
    • Open Atom and go to the Edit menu.
    • Select Preferences (or Settings on some systems).
    • Navigate to the Install section.
    • Search for “Remote-FTP” and install the package.
  3. Create a Project Folder:
    • Open Atom and go to the File menu.
    • Select Open or Add Project Folder and choose the folder you want to work with.
  4. Configure SFTP:
    1. Go to the Packages menu in Atom.
    2. Select Remote-FTP and then click on Toggle to open the Remote-FTP sidebar.
    3. Click on Edit Configuration in the sidebar. This will create a .ftpconfig file in your project folder.
  5. Edit the Configuration File:
      • Open the .ftpconfig file and populate it with your SFTP connection details.
        Here is an example configuration:

    {
    "protocol": "sftp",
    "host": "your-server-address",
    "port": 22,
    "user": "your-username",
    "pass": "your-password",
    "remote": "/path/to/remote/directory"
    }

    • Replace the placeholders with your actual server details.
  6. Connect to the Server:
    • After saving the .ftpconfig file, go back to the Remote-FTP sidebar.
    • Click on **Connect** to establish the SFTP connection.
    • Once connected, you will see the remote filesystem displayed in the sidebar, allowing you to open and edit files directly on the server.

By following these steps, you can set up SFTP in Atom to edit files on a remote server directly from the editor[2][4][5].

Citations:
[1] https://www.youtube.com/watch?v=C_s3FEWSRG0
[2] https://onion.io/2bt-atom-sftp/
[3] https://stackoverflow.com/questions/60619174/atom-editor-cannot-create-sftp-connection-to-aws-ubuntu-instance-using-remote-ft
[4] https://webauth.service.ohio-state.edu/idp/profile/SAML2/Redirect/SSO?execution=e1s1
[5] https://gist.github.com/stevekm/f8732344ed1c324e47954cd106044724

Extensions

Atom has a great repository of plugins.