
We believe in securely connecting everything by enabling users to build private networks within the internet that only they can see. We provide zero trust IT/OT networking as a service.
Language
English
日本
Securely copying files between computers is a common task for developers, system administrators, and IT professionals. Whether you’re managing remote servers or moving configuration files across environments, the SCP (Secure Copy Protocol) command is a reliable, simple tool for the job.
This tutorial walks through the basics of the SCP command—how it works, how to use it, and how Remote.It removes the friction that typically surrounds remote file transfer. With Remote.It, you can use SCP to connect to devices anywhere in the world, without worrying about public IP addresses, NAT traversal, firewall rules, or network ACLs.
SCP stands for Secure Copy Protocol, and it enables file transfer between hosts on a network. It runs over SSH (Secure Shell) and provides encryption and authentication, ensuring that your data is protected in transit.
The typical syntax for the SCP command looks like this:
bash
scp source_file user@remote_host:/path/to/destination
It works both ways:
Here are a few examples to get you started:
bash
scp myfile.txt user@192.168.1.100:/home/user/
bash
scp user@192.168.1.100:/home/user/myfile.txt ./downloads/
This downloads myfile.txt from the remote host to the downloads directory on your local machine.
Use the -r flag for recursive copy:
bash
scp -r myproject/ user@remote_host:/var/www/
If SSH is running on a non-default port:
bash
scp -P 2222 myfile.txt user@remote_host:/home/user/
While SCP is powerful and easy to use, there are a few challenges when transferring files between networks:
These issues lead to delays, IT overhead, and often, physical site visits—especially for IoT or edge deployments.
Remote.It eliminates all of these network headaches. It provides secure, private connectivity to any device without needing public IPs, firewall changes, or VPNs.
With Remote.It:
Remote.It acts as a private proxy layer that wraps services like SSH/SCP in a secure tunnel. When you register a device and its SSH port with Remote.It, the platform assigns a proxy endpoint you can connect to using standard tools like scp, ssh, or even file explorers.
Here’s how you can use SCP to copy files to and from a device registered with Remote.It.
Use the CLI to start a connection:
bash
remoteit connect --host mydevice --service ssh
This will return a localhost endpoint, like:
bash
localhost:33001
bash
scp -P 33001 myfile.txt user@localhost:/home/user/
That’s it. The file transfers securely to your remote device, even if it’s behind multiple layers of NAT or firewalls.
Here’s how Remote.It changes the game for file transfer workflows:
If you’re building and managing devices at scale—or just want a more reliable way to move files without touching network settings—Remote.It is the easiest way to integrate SCP into your workflow.
SCP remains a trusted tool for secure file transfers, but its usefulness is often limited by network constraints. Remote.It removes those constraints.
By combining the simplicity of SCP with Remote.It’s flexible connectivity, you get the best of both worlds: encrypted file transfer with zero network configuration.
So the next time you need to copy files to a device behind a firewall, skip the port forwarding. Just use SCP with Remote.It.