Atom: Using remote-sync in Windows 10

This article explains how to use the Atom remote-sync package to connect to an Ubuntu remote server via SCP/SFTP or FTP. Read more about remote-sync at https://atom.io/packages/remote-sync

1. Install remote-sync package (local)

  • Open Atom and select File > Settings > Install

  • In the Search Packages text box, type remote-sync and hit enter. Then click Install from the search results.

2. Configure remote-sync (local)

For this step we will assume that Atom is being used locally to modify a project folder hosted on a remote server (e.g. Ubuntu)

  • Create an empty folder on your local machine. We will use this as the local project folder for Atom

  • In Atom select File > Add Project Folder. Browse to and select the folder created in the previous step, then click Select Folder.

  • Right-click the project folder in Atom and select Remote Sync > Configure

I’ve previously configured ssh (which scp uses) in Ubuntu, and a loopback in VirtualBox to allow access to Ubuntu via PuTTY to localhost:3022. If you haven’t done this step, check out my article on remote-atom for instructions.

  • Enter Hostname as 127.0.0.1

  • Enter Port as 3022

  • Enter the Target directory to your project folder on the remote server, e.g. /home/someone/myproject

  • Enter Username

For simplicity I’m going to use password authentication.

  • Toggle from privatekey to password and enter your password

There are other options we can set as well, like uploadOnSave, which I’ll also select.

  • Click Save

3. Download project folder (local)

  • In Atom Right-click the project folder and select Remote Sync > Download folder

We can see what Remote Sync is doing in the console at the bottom of the Atom window. If everything is setup correctly and working you should see something like:

Connecting: someone@127.0.0.1:3022
Download: /home/someone/myproject/somefile.js
....
Downloaded all files: C:\....

When it’s finished you should see all the folders and files from the Ubuntu target directory available in Atom. On save of a file, it will be automatically synced back to Ubuntu (assuming you selected uploadOnSave in a previous step).

Solidity syntax

If you’re working with the Solidity language, Atom has a package for syntax highlighting called language-ethereum.