Free tools Windows power users keep installed
One-click scans. No signup required.
scp copies files between your computer and a VPS through an SSH connection. Put the local path first when uploading, the VPS path first when downloading, add -i for a specific SSH key, use uppercase -P for a non-standard port, and add -r for a directory tree.
Antihost offers Linux VPS plans with full root access, unlimited traffic on a 1 Gbps port and a 14-day free trial.
scp ./local-file.txt [email protected]:/home/deploy/
scp [email protected]:/var/log/app.log ./logs/
scp -i ~/.ssh/id_ed25519 -P 2222 -r ./site [email protected]:/var/www/
The current OpenSSH implementation uses the SFTP protocol over SSH and the same authentication as an SSH login. Once an SSH connection with the same user, key, host and port works, scp normally uses that connection to transfer the file.
As an Amazon Associate I earn from qualifying purchases.
Recommended Free Tools
What scp does and what you need first
OpenSSH describes scp as a tool that “copies files between hosts on a network.” In a VPS workflow, one host is your local computer and the other is the virtual private server. The transfer is protected by SSH encryption and authentication; scp does not create a separate password or encryption system.
You need four pieces of information from your VPS setup:
#1 Best Overall
- BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
- EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
- COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
- LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
- WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.
- The VPS DNS name or IP address, such as
vps.exampleor203.0.113.10. - The login account, such as
deploy. - The SSH port, usually the server’s configured port. Use
22only when that is actually the configured port. - The authentication method: an accepted password or, preferably, a private key held on your local computer.
The destination directory must already exist, and the authenticated account must be allowed to write there. A successful SSH login alone does not grant permission to write every directory on the VPS.
Understand the command form
The general form is:
scp [options] source target
Either side can be local or remote. A remote location is written as [user@]host:path; OpenSSH also accepts an scp:// URI. In practice, include the username when it differs from your local account so that the command is unambiguous.
Do these 3 things before closing this tab:
1Clear out junk files and repair common Windows errors2Fix the driver behind crashes, sound loss and screen glitches3Repair Windows errors before they cause bigger problems| Operation | Source | Target |
|---|---|---|
| Upload | Local path | user@host:remote-path |
| Download | user@host:remote-path |
Local path |
| Rename during upload | Local file | Remote filename, including its new name |
A trailing slash communicates that the target is a directory. If you specify a filename at the destination, scp writes the transfer under that name.
Upload a file to the VPS
Copy one file into a remote directory
Run this on your local computer:
scp ./local-file.txt [email protected]:/home/deploy/
./local-file.txt is relative to the directory in which you run the command. The remote account is deploy, the server address is 203.0.113.10, and the destination directory is /home/deploy/. If the directory exists and is writable by deploy, the resulting file is /home/deploy/local-file.txt.
Upload and choose a different remote filename
scp ./build/app.tar.gz [email protected]:/tmp/app-release.tar.gz
Here the source remains app.tar.gz, while the remote copy is named app-release.tar.gz. The parent directory, /tmp, must exist and allow the login account to create the file.
Upload several files in one command
List multiple local source paths and put the remote directory last:
scp ./app.conf ./app.tar.gz [email protected]:/home/deploy/
Every source must be readable by the local account. Keeping the destination as a directory avoids accidentally treating one of the source names as a remote filename.
Download a file from the VPS
Copy a remote file into a local directory
scp [email protected]:/var/log/app.log ./logs/
The remote path is first because this is a download. The local ./logs/ directory must exist and be writable by your local account. The downloaded file keeps the remote basename, app.log.
Save the download under a new local name
scp [email protected]:/var/log/app.log ./logs/app-previous.log
Use an explicit local filename when you want to preserve an older copy or fit an existing backup naming scheme.
Rank #2
- WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
- AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
- PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
- ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
- COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed
Copy a directory tree
Add -r to recursively copy a directory and its contents:
PC Slower Than It Used to Be?
A free scan shows the junk files, broken settings and background clutter dragging Windows down - then fixes them in one click.Free scan · Windows 10 & 11Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minutescp -r ./site [email protected]:/var/www/
This places the local site directory under /var/www/, subject to the remote account’s write permissions. The OpenSSH manual notes that symbolic links encountered while traversing a directory with -r are followed. Check a tree that contains links before transferring it if following those links could include files outside the directory you intended to copy.
The same option works for downloading a directory:
scp -r [email protected]:/home/deploy/releases ./releases-backup/
Do not add -r to a regular-file transfer; use it when a source or target operation actually involves a directory tree.
Use an SSH key, custom port or jump host
Select a private key with -i
scp -i ~/.ssh/id_ed25519 ./backup.tar.gz [email protected]:/home/deploy/
The -i option selects the identity file used for public-key authentication. Keep this private key on your local computer, protect its file permissions, and never copy the private key to the VPS as part of a file-transfer workflow. The corresponding public key must already be accepted for the remote account.
If the key is in the default SSH location, you may not need -i. Specify it explicitly when several keys are available or when the server requires a particular identity.
Connect to a non-standard SSH port with uppercase -P
scp -P 2222 ./backup.tar.gz [email protected]:/home/deploy/
-P selects the remote SSH port. It is uppercase on purpose. Lowercase -p means something else: it preserves the source file’s modification times, access times and mode bits.
Combine key, port and recursive transfer options
scp -i ~/.ssh/id_ed25519 -P 2222 -r ./site [email protected]:/var/www/
Options can be combined before the source and target. When diagnosing a failure, separate the concerns: first verify the key and port with a plain SSH login, then add -r or other transfer options.
Reach the VPS through a bastion host
Use -J (ProxyJump) when the VPS is reachable only through an intermediate SSH host:
scp -J [email protected] ./local-file [email protected]:/home/deploy/
The jump host handles the connection path; the final destination is still [email protected]. For other SSH configuration settings, pass an option with -o.
Rank #3
- Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
- Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
- Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
- ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
- Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)
Handle destination paths and privilege boundaries
Protected directories such as /var/www often are not writable by an ordinary deployment account. Running scp with a path that the account cannot write produces a permission error; scp does not automatically invoke sudo on the remote side.
Use a two-step transfer instead: copy to a user-owned directory, then run a privileged install command through SSH.
scp ./app.tar.gz [email protected]:/home/deploy/
ssh [email protected] 'sudo install -m 0644 /home/deploy/app.tar.gz /var/www/app.tar.gz'
The first command needs write access only to /home/deploy/. The second command runs on the VPS and uses the account’s configured sudo privilege to place the file at the protected path with mode 0644. Adjust the destination and mode to match your application’s ownership and permission policy.
Before a transfer, confirm the remote directory rather than guessing:
The Tool Desk
Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →ssh [email protected] 'pwd; ls -la /home/deploy/'
This also helps distinguish a missing directory from a permission problem.
Avoid local-path parsing mistakes
OpenSSH treats a colon in a source or target as a possible host separator. A Windows path such as C:UsersNamefile.txt can therefore be misread when entered unquoted in a shell. Use an explicit relative or absolute local path and quote it according to the shell you are using.
For example, make the local side unmistakable in a compatible shell:
scp './build/app.tar.gz' [email protected]:/home/deploy/
In a Windows shell, use that shell’s normal quoting and path conventions. The important point is to prevent the local drive-letter colon from being interpreted as the separator in a remote specification.
Quick wins for a faster PC:
Clear out junk files and repair common Windows errorsFree Scan →Scan for outdated or missing drivers - takes under a minuteDriver Scan →Useful scp options
| Option | Effect | When to use it |
|---|---|---|
-i file |
Selects a private identity file for public-key authentication. | When the required key is not the one selected by default. |
-P port |
Selects the remote SSH port. | When the VPS SSH service listens on a port such as 2222. |
-r |
Recursively copies directories; symbolic links encountered during traversal are followed. | When transferring a directory tree. |
-p |
Preserves source modification times, access times and mode bits. | When those metadata values matter on the destination. |
-C |
Enables SSH compression. | Potentially useful for compressible text over a slow link; already-compressed archives may gain little. |
-q |
Suppresses the progress meter and diagnostics. | For quiet scripted output after the transfer is known to work; omit it while troubleshooting. |
-v |
Increases SSH diagnostic output. | To inspect authentication and connection negotiation. |
-l KBIT |
Limits transfer bandwidth in kilobits per second. | When a transfer must stay below a defined bandwidth ceiling. |
-J host |
Uses a jump host through ProxyJump. | When the VPS is accessible through a bastion. |
-o option |
Passes another SSH configuration option. | For SSH settings not covered by a dedicated scp flag. |
Keep -q out of your first diagnostic attempt. Hiding the progress meter and diagnostics can make a working transfer look idle and can conceal the error needed to fix a failed one.
Rank #4
- Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
- Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
- 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
- Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
- USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC
Plan a repeatable transfer
For a one-off copy, a single command is usually enough. For a deployment, make the source, destination and verification explicit so that an accidental path does not overwrite the wrong file. Build or package the application locally, copy the resulting archive to a staging directory such as /home/deploy/releases/, and give each release a distinct filename. You can then inspect the uploaded file before installing it.
Use a destination filename rather than relying on a shell wildcard when the transfer is part of a script. Wildcards are expanded by the local shell for local sources, while a remote wildcard is interpreted by the remote side and can behave differently across shells. Explicit paths are easier to audit and produce clearer errors.
If a transfer is interrupted, rerun the command after checking whether a partial destination file exists. A subsequent copy to the same filename can replace it, so do not point a deployment service at that file until you have confirmed the transfer completed. For large artifacts, keeping the archive in a staging directory until verification avoids exposing an incomplete file at the live path.
A reliable deployment sequence
- Confirm the account, address and port. Use the DNS name or IP supplied for the VPS and the login username created there.
- Test SSH with the exact identity and port.
ssh -i ~/.ssh/id_ed25519 -p 2222 [email protected] - Check the destination directory. From the SSH session, verify that the path exists and that the account can write there. A user-owned staging directory such as
/home/deploy/is suitable when the final location is protected. - Transfer the file or tree. Put the local path first for an upload, add
-rfor a directory, and specify-ior uppercase-Pwhen needed. - Verify the remote result. Log in and use
ls -laon the destination to confirm the filename and location before using the file in a deployment. - Install into a protected path only through an authorized command. Copy to the staging directory first, then use an SSH command with the required privilege, such as
sudo install.
Troubleshoot common failures
The SSH connection fails before transfer
Run the same connection independently:
ssh -i ~/.ssh/id_ed25519 -p 2222 [email protected]
If this cannot connect, scp cannot succeed with those settings. Check the DNS name or IP, firewall rules, port, username and selected key. Add -v to the ssh or scp command for connection and authentication diagnostics.
“No such file or directory” appears
Determine which side is missing the path. For a remote path, inspect it directly:
ssh [email protected] 'pwd; ls -la /path'
Check spelling, capitalization and whether the parent directory exists. For a local path, run the command from the expected working directory or use an explicit absolute path. When copying a directory, confirm that the source is really a directory and that -r is present.
“Permission denied” appears
Identify whether the denial is local authentication, local file reading, remote login or remote writing. If SSH authentication succeeds but the destination rejects the upload, choose a directory writable by the login user or correct the remote ownership and permissions. For protected locations, use the staging-and-sudo install pattern rather than attempting to make scp run as root.
The host-key prompt is unexpected
Before accepting a new host key, verify its fingerprint through the VPS provider’s trusted console or documentation. This check confirms that the server you are contacting is the intended one. Do not bypass host-key verification merely to make a first transfer complete.
The command seems silent
Remove -q. That option suppresses the progress meter and diagnostics. If more detail is needed, add -v and inspect the SSH negotiation output.
Best Value
- Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
- Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
- Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
- Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
- Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.
Security practices that belong in every transfer
- Prefer public-key authentication and select the intended private key with
-iwhen necessary. - Keep private keys on the local computer, protect their permissions, and never upload them to the VPS.
- Verify a new host key fingerprint through a trusted VPS console or provider document before accepting it.
- Avoid putting passwords, tokens or other secrets directly in a command that will remain in shell history.
- Use a user-owned staging directory and a narrowly scoped privileged install command instead of granting broad write access to a protected web directory.
Protocol behavior and compatibility
The current OpenSSH implementation uses SFTP by default while retaining the familiar scp command syntax. It still runs over an SSH connection and uses the same authentication as an SSH login. The legacy scp protocol is selected only with uppercase -O for compatibility cases documented in the OpenSSH manual. Use that mode only when an older endpoint requires it; otherwise leave the default protocol in place.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
The URI form is available when you need it:
scp scp://[email protected]/home/deploy/app.tar.gz ./
For ordinary VPS work, the shorter user@host:path form is easier to read and less likely to hide a path mistake.
Quick decision guide
- One local file to a writable VPS directory:
scp ./file user@host:/remote/dir/ - Remote file to your computer:
scp user@host:/remote/file ./local-dir/ - Directory tree: add
-r. - Specific SSH key: add
-i /path/to/private_key. - Custom SSH port: add uppercase
-P port. - Protected destination: upload to a user-writable staging directory, then move it with an authorized SSH command.
- Any unexplained failure: reproduce the connection with
sshusing the same user, key and port before changing the file command.
With those rules, scp [options] source target covers routine VPS uploads, downloads, directory copies and staged deployments while keeping authentication and transport under SSH.
Frequently Asked Questions
How do I copy a file to my VPS with scp?
Run scp ./local-file.txt user@host:/remote/directory/ on your local computer. Replace the username, host and destination with values from your VPS setup. The remote directory must already exist and be writable by that account.
How do I use an SSH key with scp?
Pass the private-key path with -i, for example scp -i ~/.ssh/id_ed25519 ./backup.tar.gz [email protected]:/home/deploy/. Keep the private key local; the matching public key must be authorized for the remote account.
Free tools Windows power users keep installed
One-click scans. No signup required.
How do I copy a folder recursively?
Add -r: scp -r ./site [email protected]:/var/www/. Symbolic links encountered during traversal are followed, so inspect links before copying a tree.
How do I use scp on a custom SSH port?
Use uppercase -P, such as scp -P 2222 ./file user@host:/home/user/. Lowercase -p preserves timestamps and mode bits instead; it does not select a port.
Why does scp say permission denied?
The login user may not be allowed to write to the destination, or local authentication or file reading may have failed. Upload to a user-owned staging directory first, then use an authorized SSH command such as sudo install to place the file in a protected path.
Can scp upload directly into /var/www?
Only if the authenticated account has write permission there. Otherwise copy to /home/deploy/ or another writable staging directory and move the file with a privileged remote command.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
What should I do when scp reports no such file or directory?
Check whether the missing path is local or remote. Use pwd and an absolute local path for local files; use ssh user@host 'ls -la /path' to verify the remote directory, spelling and capitalization.
How do I copy through a bastion host?
Use ProxyJump with -J, for example scp -J [email protected] ./file [email protected]:/home/deploy/. The final destination remains the VPS account and hostname.
The Bottom Line
Remember the pattern: scp [options] source target. Uploads put the local path first; downloads put the VPS path first. Use -i for a key, uppercase -P for a port, and -r for directories. Test SSH with the same user, key and port before investigating a path or permission error, and stage files in a writable directory before using sudo to install them in protected locations.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
Recommended Free Tools




