WinSCP — connect, transfer, keep folders in sync
Install and connect
- Install WinSCP 6.7 from winscp.net (Installation package). Pick the Commander interface — two panes, local on the left, server on the right.
- New Site: protocol SFTP, host, port 22, user. Leave password empty.
- Advanced → SSH → Authentication → Private key file: your
.ppk(or leave empty if Pageant is running). - Save as
lab, then Login. The first connection shows the same host-key check as PuTTY. - Faster: Tools → Import Sites copies your PuTTY sessions, keys included.
Everyday moves
| # | Task | How |
|---|---|---|
| 1 | Upload / download | Drag between panes, or F5 (copy) / F6 (move) |
| 2 | Open a terminal here | Ctrl+P opens PuTTY in the current remote folder |
| 3 | Change permissions | Right-click → Properties → Octal (644 files, 755 folders, 600 secrets) |
| 4 | Compare folders | Commands → Compare Directories |
| 5 | Mirror local → server | Commands → Synchronize → direction Remote, Preview changes first |
| 6 | Live upload while you edit | Commands → Keep Remote Directory up to Date |
| 7 | Find a file on the server | Ctrl+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 czfon 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
- Create
hello.txton your desktop and upload it to your home folder. - In PuTTY:
ls -l hello.txt; cat hello.txt. - Change its permissions to 600 in WinSCP and confirm with
ls -l.
Rating
0
0
There are no comments for now.
Join this Course
to be the first to leave a comment.