mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-27 06:54:00 +00:00
Improve webssh2 consistency
This commit is contained in:
parent
111ce603e4
commit
2ad766403a
|
@ -3,12 +3,11 @@
|
|||
|
||||
[Unit]
|
||||
Description=WebSSH2
|
||||
Wants=www.service mynode_docker_images.service
|
||||
After=www.service mynode_docker_images.service
|
||||
Wants=www.service docker_images.service
|
||||
After=www.service docker_images.service
|
||||
|
||||
[Service]
|
||||
WorkingDirectory=/opt/mynode/webssh2
|
||||
ExecStart=/usr/bin/docker run --rm --name webssh2 -p 2222:2222 webssh2
|
||||
ExecStart=/usr/bin/docker run --rm --name webssh2 -p 2222:2222 -v /opt/mynode/webssh2/config.json:/usr/src/config.json webssh2
|
||||
ExecStop=/usr/bin/docker stop -t 2 webssh2
|
||||
|
||||
User=root
|
||||
|
|
71
rootfs/standard/opt/mynode/webssh2/config.json
Normal file
71
rootfs/standard/opt/mynode/webssh2/config.json
Normal file
|
@ -0,0 +1,71 @@
|
|||
{
|
||||
"listen": {
|
||||
"ip": "0.0.0.0",
|
||||
"port": 2222
|
||||
},
|
||||
"user": {
|
||||
"name": null,
|
||||
"password": null
|
||||
},
|
||||
"ssh": {
|
||||
"host": null,
|
||||
"port": 22,
|
||||
"term": "xterm-color",
|
||||
"readyTimeout": 20000,
|
||||
"keepaliveInterval": 120000,
|
||||
"keepaliveCountMax": 10
|
||||
},
|
||||
"terminal": {
|
||||
"cursorBlink": true,
|
||||
"scrollback": 10000,
|
||||
"tabStopWidth": 8,
|
||||
"bellStyle": "sound"
|
||||
},
|
||||
"header": {
|
||||
"text": null,
|
||||
"background": "green"
|
||||
},
|
||||
"session": {
|
||||
"name": "WebSSH2",
|
||||
"secret": "mysecret"
|
||||
},
|
||||
"options": {
|
||||
"challengeButton": true,
|
||||
"allowreauth": 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"
|
||||
],
|
||||
"hmac": [
|
||||
"hmac-sha2-256",
|
||||
"hmac-sha2-512",
|
||||
"hmac-sha1"
|
||||
],
|
||||
"compress": [
|
||||
"none",
|
||||
"zlib@openssh.com",
|
||||
"zlib"
|
||||
]
|
||||
},
|
||||
"serverlog": {
|
||||
"client": false,
|
||||
"server": false
|
||||
},
|
||||
"accesslog": false,
|
||||
"verify": false
|
||||
}
|
Loading…
Reference in New Issue
Block a user