I was working with my vms and i needed a easy way to share files while i was sshing them. I came up with this simple shell script.

It requires python.

print

example:

# Starts a HTTP server in ~/imgages using port 80
./tmphttp ~/images 80

Download the source code.