diff --git a/oedp-server/configs/gunicorn.conf b/oedp-server/configs/gunicorn.conf new file mode 100644 index 0000000000000000000000000000000000000000..f36bbcb2358bd7bc18400595327a0a78d1d1f946 --- /dev/null +++ b/oedp-server/configs/gunicorn.conf @@ -0,0 +1,9 @@ +# 绑定ip和端口号 +bind = '127.0.0.1:18080' +# 监听队列 +backlog = 512 +# 超时 +timeout = 600 +# 进程数 +workers = 1 +threads = 8 \ No newline at end of file diff --git a/oedp-server/configs/ssh/ssh.conf b/oedp-server/configs/ssh/ssh.conf new file mode 100644 index 0000000000000000000000000000000000000000..5823209f16b766da08dc1a666c1793daa8c40a77 --- /dev/null +++ b/oedp-server/configs/ssh/ssh.conf @@ -0,0 +1,9 @@ +[timeout] +establish_timeout = 120 +expect_prompts_timeout = 120 +execute_cmd_timeout = 600 + +[size] +tail_show_line_num = 100 +window_height = 24 +window_buffer_width = 150 \ No newline at end of file diff --git a/oedp-server/configs/ssh/ssh_prompts.json b/oedp-server/configs/ssh/ssh_prompts.json new file mode 100644 index 0000000000000000000000000000000000000000..418576136538b64a1890a8fcfb03053b0140c862 --- /dev/null +++ b/oedp-server/configs/ssh/ssh_prompts.json @@ -0,0 +1,57 @@ +{ + "login": [ + { + "prompt": "[p/P]assword:", + "send": "PASSWORD", + "status": "In Progress", + "next": null + }, + { + "prompt": "Are you sure you want to continue connecting", + "send": "yes\n", + "status": "In Progress", + "next": { + "prompt": "[p/P]assword:", + "send": "PASSWORD", + "status": "In Progress", + "next": null + } + }, + { + "prompt": "Last login:", + "send": null, + "status": "Success", + "next": null + }, + { + "prompt": "上一次登录:", + "send": null, + "status": "Success", + "next": null + }, + { + "prompt": "[p/P]ermission denied", + "send": null, + "status": "Fail", + "next": null + }, + { + "prompt": "ssh: connect to host", + "send": null, + "status": "Fail", + "next": null + }, + { + "prompt": "Connection refused", + "send": null, + "status": "Fail", + "next": null + }, + { + "prompt": "Host key verification failed", + "send": null, + "status": "Fail", + "next": null + } + ] +} \ No newline at end of file