使用本地转发,在本机上输入
ssh -L 81:210.32.200.89:11063 suzie@210.32.200.89
这时候打开浏览器,输入地址127.0.0.1:81 我同时也试验了
ssh -L 81:127.0.0.1:11063 suzie@210.32.200.89
ssh -L 81:localhost:11063 suzie@210.32.200.89
package main | |
import ( | |
"bytes" | |
"fmt" | |
"log" | |
"os/exec" | |
"strings" | |
) |
# /etc/pagekite/20_frontend.rc on kites.evaryont.me | |
# Front-end selection | |
# | |
# Front-ends accept incoming requests on your behalf and forward them to | |
# your PageKite, which in turn forwards them to the actual server. | |
# Running my own front-end! | |
isfrontend |
#!/usr/bin/env python | |
import os | |
import paramiko | |
import argparse | |
import socket | |
import logging | |
def create_ssh_client(hostname): |
# coding: utf-8 | |
u""" | |
线性数据结构, 栈, 队列, deques, 容器结构, 数据项之间存在相对的位置 | |
""" | |
class Stack(object): | |
u""" | |
栈 先进后出 |
""" | |
A python library of constants and utility functions for using ANSI terminal escapes. | |
Example usage: | |
>>> import escapes as e | |
>>> print e.FORECOLOUR(e.RED) + "this is red" + e.UNFORMAT | |
""" | |
ESC = "\033" # escape character for terminal | |
CSI = ESC + "[" # Control Sequence Initiator |
import base64 | |
import datetime | |
import hashlib | |
import hmac | |
import io | |
import json | |
import mimetypes | |
import os | |
import uuid | |
from urllib.error import HTTPError, URLError |
# -*- coding: utf-8 -*- | |
import store | |
from tools.tor import ThreadRequestContext | |
class BaseHandler(RequestHandler): | |
def prepare(self): | |
store.db() |
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import random as rnd | |
import numpy as np | |
from PIL import Image | |
from itertools import cycle | |
def main(): |
import tornado | |
class RequestContextHandler(tornado.web.RequestHandler): | |
def _execute(self, transforms, *args, **kwargs): | |
# following the example of: | |
# https://github.com/bdarnell/tornado_tracing/blob/master/tornado_tracing/recording.py | |
global_data = {} # add whatever here, e.g. self.request |