2. JumpHost Configuration#

This configuration file deals with the services that are made available by the service to be accessed by end users.

Note

  1. sshwebproxy_hosts.config

    • This file contains the list of services that the user will be able to access via the web front end.

2.1. sshwebproxy_hosts.config#

Example Configuration of what services are available for use

{"services": {
  "ssh":
  {
    "icon": "ri-terminal-box-line",
    "hosts": {
      "192.168.1.20": {"host": "192.168.1.20", "port": 22, "target_host": "", "target_port": 0, "dscr": "Ju mp host for dev ops"},
     "192.168.1.21": {"host": "192.168.1.21", "port": 22, "target_host": "", "target_port": 0, "dscr": "Ju mp host for network ops"},
     "192.168.1.22": {"host": "192.168.1.22", "port": 22, "target_host": "", "target_port": 0, "dscr": "Ju mp host for team ops"},
     "192.168.1.23": {"host": "192.168.1.23", "port": 22, "target_host": "", "target_port": 0, "dscr": "Ju mp host for sec ops"},
     "192.168.1.24": {"host": "192.168.1.24", "port": 22, "target_host": "", "target_port": 0, "dscr": "Ju mp host for L1/L2 ops"}
    },
    "command": ""
  },
  "psql":
  {
    "icon": "ri-database-2-line",
     "hosts": {
       "192.168.1.20": {"host": "192.168.1.20", "port": 22, "target_host": "192.168.1.20", "target_port": 5432, "dscr": "SQL Jump host for L1/L2 ops"},
       "192.168.1.21": {"host": "192.168.1.21", "port": 22, "target_host": "192.168.1.20", "target_port": 3306, "dscr": "SQL Jump host for L1/L2 ops"}
     },
     "command": "exec /usr/bin/psql -U %USER% -h %HOST% -p %PORT%"
  },
  "tcl":
  {
    "icon": "ri-terminal-box-fill",
    "hosts": {
      "192.168.1.20": {"host": "192.168.1.20", "port": 22, "target_host": "", "target_port": 0, "dscr": "T CL Jump host for L1/L2 ops"}
    },
    "command": "exec /usr/bin/tclsh"
  },
  "erl":
  {
    "icon": "ri-terminal-window-line",
    "hosts": {
      "192.168.1.20": {"host": "192.168.1.20", "port": 22, "target_host": "", "target_port": 0, "dscr": "E RL Jump host for L1/L2 ops"}
    },
    "command": "exec /usr/bin/erl"
  },
  "ipython3":
  {
    "icon": "ri-terminal-window-fill",
    "hosts": {
      "192.168.1.20": {"host": "192.168.1.20", "port": 22, "target_host": "", "target_port": 0, "dscr": "E RL Jump host for L1/L2 ops"}
    },
    "command": "exec /usr/local/bin/ipython3"
  },
  "tcl":
  {
    "icon": "ri-code-box-line",
    "hosts": {
     "192.168.1.20": {"host": "192.168.1.20", "port": 22, "target_host": "", "target_port": 0, "dscr": "TC L Jump host for L1/L2 ops"}
    },
    "command": "exec /usr/bin/tclsh"
  },
  "openssl":
  {
    "icon": "ri-terminal-line",
    "hosts": {
      "192.168.1.20": {"host": "192.168.1.20", "port": 22, "target_host": "", "target_port": 0, "dscr": "O penssl Cmd Jump host for L1/L2 ops"}
    },
    "command": "exec /usr/bin/openssl"
  }
 }
}