File Transfer with scp
Pivoting & Transfertool
Summary
Copies a file to a remote host securely over SSH using valid SSH credentials.
Walkthrough
Use scp to copy files over an existing SSH connection when you have valid credentials on the target.
Steps
- Specify the local source file followed by
<USER>@<IP>:and the destination path on the remote host. - Reverse the arguments to pull a file from the remote host to your machine.
Commands
bash
scp /path/to/local/file <USER>@<IP>:/path/to/remote/directory