webssh2/config.json
billchurch 4540cc6e0e updated documents, added validation to user input strings
term= query option to specify TERM environment variable for host, valid
strings are alpha-numeric with a hypen (validated). Otherwise the
default ssh.term variable from `config.json` will be used.
- validation for host (v4,v6,fqdn,hostname), port (integer 2-65535),
and header (sanatized) from URL input
2017-05-27 18:12:02 -04:00

56 lines
No EOL
1 KiB
JSON

{
"listen": {
"ip": "127.0.0.1",
"port": 2222
},
"user": {
"name": null,
"password": null
},
"ssh": {
"host": null,
"port": 22,
"term": "xterm-color"
},
"useminified": false,
"header": {
"text": null,
"background": "green"
},
"session": {
"name": "WebSSH2",
"secret": "mysecret"
},
"options": {
"challengeButton": true
},
"algorithms": {
"kex": [
"ecdh-sha2-nistp256",
"ecdh-sha2-nistp384",
"ecdh-sha2-nistp521",
"diffie-hellman-group-exchange-sha256",
"diffie-hellman-group14-sha1"
],
"cipher": [
"aes128-ctr",
"aes192-ctr",
"aes256-ctr",
"aes128-gcm",
"aes128-gcm@openssh.com",
"aes256-gcm",
"aes256-gcm@openssh.com",
"aes256-cbc" // for some legacy systems
],
"hmac": [
"hmac-sha2-256",
"hmac-sha2-512",
"hmac-sha1" // for some legacy systems
],
"compress": [
"none",
"zlib@openssh.com",
"zlib"
]
}
}