Spaces:
Paused
Paused
Update WebSSH/__main__.py
Browse files- WebSSH/__main__.py +3 -4
WebSSH/__main__.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
import os
|
| 2 |
-
|
| 3 |
-
#import webssh
|
| 4 |
import logging
|
| 5 |
import paramiko
|
| 6 |
import subprocess
|
|
@@ -25,7 +24,7 @@ define('keyfile', default='', help='SSL private key file')
|
|
| 25 |
define('debug', type=bool, default=True, help='Debug mode')
|
| 26 |
define('policy', default='autoadd', help='Missing host key policy, reject|autoadd|warning')
|
| 27 |
define('hostfile', default='', help='User defined host keys file')
|
| 28 |
-
define('syshostfile', default='', help='System wide host keys file')
|
| 29 |
define('tdstream', default='', help='Trusted downstream, separated by comma')
|
| 30 |
define('redirect', type=bool, default=True, help='Redirecting http to https')
|
| 31 |
define('fbidhttp', type=bool, default=False, help='Forbid public plain http incoming requests')
|
|
@@ -41,7 +40,7 @@ define(
|
|
| 41 |
separated by comma;
|
| 42 |
'*': wildcard policy, matches any domain, allowed in debug mode only.""",
|
| 43 |
)
|
| 44 |
-
define('wpintvl', type=float, default=
|
| 45 |
define('timeout', type=float, default=60, help='SSH connection timeout')
|
| 46 |
define('delay', type=float, default=60, help='The delay to call recycle_worker')
|
| 47 |
define('maxconn', type=int, default=5, help='Maximum live connections (ssh sessions) per client')
|
|
|
|
| 1 |
import os
|
| 2 |
+
import webssh
|
|
|
|
| 3 |
import logging
|
| 4 |
import paramiko
|
| 5 |
import subprocess
|
|
|
|
| 24 |
define('debug', type=bool, default=True, help='Debug mode')
|
| 25 |
define('policy', default='autoadd', help='Missing host key policy, reject|autoadd|warning')
|
| 26 |
define('hostfile', default='', help='User defined host keys file')
|
| 27 |
+
define('syshostfile', default='/etc/ssh/ssh_known_hosts', help='System wide host keys file')
|
| 28 |
define('tdstream', default='', help='Trusted downstream, separated by comma')
|
| 29 |
define('redirect', type=bool, default=True, help='Redirecting http to https')
|
| 30 |
define('fbidhttp', type=bool, default=False, help='Forbid public plain http incoming requests')
|
|
|
|
| 40 |
separated by comma;
|
| 41 |
'*': wildcard policy, matches any domain, allowed in debug mode only.""",
|
| 42 |
)
|
| 43 |
+
define('wpintvl', type=float, default=30, help='Websocket ping interval')
|
| 44 |
define('timeout', type=float, default=60, help='SSH connection timeout')
|
| 45 |
define('delay', type=float, default=60, help='The delay to call recycle_worker')
|
| 46 |
define('maxconn', type=int, default=5, help='Maximum live connections (ssh sessions) per client')
|