1. SSH to the server
2.Since we are talking alittle anonymity, python would do the charm since they can't see most of the activity except that you spawned a python instance; most of all the stuff will be attributed to python but your remote connection might not be easily hidden:
Solution a:python -m SimpleHTTPServer
This should be in the root dir you want to serve.
solution b:I am only giving you this because you are gonna come back complaining of slow speed. Let us try twistedtwistd -no web --path=.
3.The http server of node.js is alot faster and might more convenient for you.npm install http-server -g
http-server [path] [options]
//to serve current dir
http-server -p 8000
But i haven't done lot of networking lately, i might be wrong in some instances but you never mentioned security and login.
This is a quick easy go code to do just what you want.
package main
import (
"fmt"; "log"; "net/http"
)
func main() {
fmt.Println("Serving files in the current directory on port 8080")
http.Handle("/", http.FileServer(http.Dir(".")))
err := http.ListenAndServe(":8080", nil)
if err != nil {
log.Fatal("ListenAndServe: ", err)
}
}
go fmt wouldn't have allowed that formatting but just running will serve the current dirgo run hhtp-server.go