Introduction
File transfer is an essential skill in system administration, penetration testing, and cybersecurity. During security assessments, files often need to move between Linux systems to exchange tools, scripts, logs, and other resources. This page covers common methods for transferring files on Linux, including Wget, curl, SSH/SCP, and one-liners in several programming languages, plus uploading over SSH and a web interface.Download methods
Wget and curl
Execute without downloading
Pipe a remote file straight into an interpreter instead of saving it to disk:SSH (SCP)
Programming language one-liners
Useful when common download tools are unavailable on the target.Upload methods
SSH (SCP)
Web interface
1
Install uploadserver on Linux
2
Start the server
3
Upload the file
Open the web interface and upload the file:
http://ip:port/upload