From d9df5cab9c8b8838483fc358ff700a90b90f5fec Mon Sep 17 00:00:00 2001 From: liujiangbin11 Date: Tue, 1 Apr 2025 16:44:42 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- oedp-server/configs/gunicorn.conf | 9 ++++ oedp-server/configs/ssh/ssh.conf | 9 ++++ oedp-server/configs/ssh/ssh_prompts.json | 57 ++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 oedp-server/configs/gunicorn.conf create mode 100644 oedp-server/configs/ssh/ssh.conf create mode 100644 oedp-server/configs/ssh/ssh_prompts.json diff --git a/oedp-server/configs/gunicorn.conf b/oedp-server/configs/gunicorn.conf new file mode 100644 index 0000000..f36bbcb --- /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 0000000..5823209 --- /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 0000000..4185761 --- /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 -- Gitee