User Tools

Site Tools


guides:patterns:winscp2

Using WinSCP Synchronize a Directory on a Remote Machine

You can configure WinSCP to monitor a directory on the local machine and keep this synchronized with a directory on a remote machine. This allows you to edit and use other tools locally, and the changes will be reflected remotely.

Overview

  1. Create a directory on the local system where you will work.
  2. Create a directory on the remote system that you wish to keep synchronized with the local directory
  3. Open WinSCP and start synchronizing folders
  4. Edit on the local machine using the editor of your choice.
  5. Compile on the remote machine using putty

Discussion

Configure Synchronization

  1. In the WinSCP window, select Commands then Keep Remote Directory up to Date …
  2. Select the local and remote directories to keep in synch.
  3. Select Start
    1. You may be asked if you want to perform full synchronization first. Select Yes in most cases.
    2. Winscp should copy the files from the local directory to the remote directory
  4. Edit local files, WinSCP will transfer these when it notices a change.
  5. Use the putty terminal to compile and execute
  6. When you are finished, select Stop in the Keeping remote .. window.

References

guides/patterns/winscp2.txt · Last modified: 2024/07/25 15:01 by 127.0.0.1