Sharing is caring. For this situations there are following command line methods to provide some data to be downloaded from everywhere.
On the most common linux systems is python preinstalled or is a part of the core system,
so the next two python-examples should work like a charm.
python -m SimpleHTTPServer 8080
python3 -m http.server 8080
php -S 0.0.0.0:8080
In each case, a small HTTP server will be started to listen on TCP port 8080. The current working directory, in which the command was executed, will be started to share. You are free to use other port.
Be careful to start from the /root directory, where your ssh-keys or some more private information lives.
The shared directory can be browsed now directly or just navigated with wget/curl to single files.
Leave a Reply