Skip to Content

WinSCP — connect, transfer, keep folders in sync

Install and connect

  1. Install WinSCP 6.7 from winscp.net (Installation package). Pick the Commander interface — two panes, local on the left, server on the right.
  2. New Site: protocol SFTP, host, port 22, user. Leave password empty.
  3. Advanced → SSH → Authentication → Private key file: your .ppk (or leave empty if Pageant is running).
  4. Save as lab, then Login. The first connection shows the same host-key check as PuTTY.
  5. Faster: Tools → Import Sites copies your PuTTY sessions, keys included.

Everyday moves

#TaskHow
1Upload / downloadDrag between panes, or F5 (copy) / F6 (move)
2Open a terminal hereCtrl+P opens PuTTY in the current remote folder
3Change permissionsRight-click → Properties → Octal (644 files, 755 folders, 600 secrets)
4Compare foldersCommands → Compare Directories
5Mirror local → serverCommands → Synchronize → direction Remote, Preview changes first
6Live upload while you editCommands → Keep Remote Directory up to Date
7Find a file on the serverCtrl+F (Find Files)

Transfer settings that avoid surprises

  • Transfer mode: Binary for everything (Options → Preferences → Transfer). “Text” mode rewrites line endings and has corrupted many scripts.
  • Uploading to a web root as another user? Set the owner/permissions in Transfer → Edit → Upload options, or fix them afterwards with chown.
  • Folder with thousands of files? Zip it first (tar czf on the server, one download) — SFTP is slow per file, fast per megabyte.

Synchronize deletes

“Delete files” in Synchronize removes files on the target that are not in the source. Always press Preview changes and read the list before you start.

Try it — round trip

  1. Create hello.txt on your desktop and upload it to your home folder.
  2. In PuTTY: ls -l hello.txt; cat hello.txt.
  3. Change its permissions to 600 in WinSCP and confirm with ls -l.
Rating
0 0

There are no comments for now.

to be the first to leave a comment.