gate one 是操作系统的一个强大的开源web Terminal emulator(模拟器)插件。gate one 是一个ssh客户端,可以运行任何终端应用。甚至可以转换成为串行控制台,基于web页管理

install:
  安装条件:
      python  2.6+
      Tornado Framework 2.2+
假如使用python2.6 版本,需要安装ordereddict,安装方法 sudo pip install orderddict


在ubuntu安装:
  1.更新pip:    sudo pip install -U pip
  2.安装必要的包:
      sudo apt-get install  libkrb5-dev  krb5-config
      sudo pip install tornado kerberos
  3.下载 gate one  ,并安装
      git clone https://github.com/liftoff/GateOne.git
      cd GateOne && suto python setup.py install

编写配置文件
  cd  /opt/gateone/
  cat server.conf
      address = ""
      api_timestamp_window = "30s"
      auth = None
      ca_certs = None
      certificate = "certificate.pem"
      command = "/opt/gateone/plugins/ssh/scripts/ssh_connect.py -S '/tmp/gateone/%SESSION%/%SHORT_SOCKET%' --sshfp -a '-oUserKnownHostsFile=%USERDIR%/%USER%/ssh/known_hosts'"
      cookie_secret = "NjAxMDM0MzJmYTdmNDgzY2FiNGYzZGI0ZDEyYjUyYTI3Y"
      debug = False
      disable_ssl = False
      dtach = True
      embedded = False
      enable_unix_socket = False
      gid = "0"
      https_redirect = False
      js_init = ""
      keyfile = "keyfile.pem"
      locale = "en_US"
      log_file_max_size = 104857600
      log_file_num_backups = 10
      log_file_prefix = "/opt/gateone/logs/webserver.log"
      logging = "info"
      log_to_stderr = False
      origins = "http://localhost;https://localhost;http://127.0.0.1;https://127.0.0.1"
      pam_realm = "yourhostname"
      pam_service = "login"
      pid_file = "/var/run/gateone.pid"
      port = 443
      session_dir = "/tmp/gateone"
      session_logging = True
      session_logs_max_age = "30d"
      session_timeout = "5d"
      ssl_auth = "none"
      sso_realm = None
      sso_service = "HTTP"
      syslog_facility = "daemon"
      syslog_host = None
      syslog_session_logging = False
      uid = "0"
      unix_socket_path = "/var/run/gateone.sock"
      url_prefix = "/"
      user_dir = "/opt/gateone/users"

启动 gate one
  sudo ./gateone.py
第一次未启动成功,再次执行,启动成功


  登录效果:

Gate One web版ssh工具_第1张图片

Gate One web版ssh工具_第2张图片