#!/usr/bin/python import sys, os, SimpleHTTPServer os.chdir('/cygdrive/c/windows/temp') if not os.path.exists('index.html'): indexpage = open('index.html', 'w') indexpage.write('ssh in using public key\n') indexpage.close() SimpleHTTPServer.test()