2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-06 11:23:44 +08:00

feat: 优化ssh

This commit is contained in:
2026-01-09 05:00:35 +08:00
parent 61b2a70e84
commit 84f3a18074
6 changed files with 31 additions and 126 deletions

View File

@@ -3,12 +3,6 @@ import { http } from '@/utils'
export default {
// 获取 SSH 信息
info: (): any => http.Get('/toolbox_ssh/info'),
// 启动 SSH 服务
start: (): any => http.Post('/toolbox_ssh/start'),
// 停止 SSH 服务
stop: (): any => http.Post('/toolbox_ssh/stop'),
// 重启 SSH 服务
restart: (): any => http.Post('/toolbox_ssh/restart'),
// 设置 SSH 端口
updatePort: (port: number): any => http.Post('/toolbox_ssh/port', { port }),
// 设置密码认证