diff --git a/home/private_bin/executable_ssh-serve-files b/home/private_bin/executable_ssh-serve-files new file mode 100644 index 0000000..eadac92 --- /dev/null +++ b/home/private_bin/executable_ssh-serve-files @@ -0,0 +1,60 @@ +#!/usr/bin/env bash + +#colors +help() { + cat <>$DIR" + +# first change directory in case python<3.7 +ssh -tL localhost:$PORT:localhost:$PORT $USER_HOST \ + "cd $DIR && python3 -m http.server $PORT"