python2 -m SimpleHTTPServer 12345
sshrc() { ssh -R 12345:127.0.0.1:12345 -t ${*:1} 'bash -c "bash --rcfile <(curl -s http://127.0.0.1:12345/sshrc)"' }
Doing it this way has its own quirks though.
Doing it this way has its own quirks though.