GetConfig
获取面板密码认证和 SSH 密钥认证的配置状态。
- 路由:
POST /password - action:
GetConfig
输入参数
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| action | 是 | String | 固定值 GetConfig |
输出参数
| 参数名称 | 类型 | 描述 |
|---|---|---|
| password | String | 密码登录:yes/no |
| pubkey | String | 公钥认证:yes/no |
| rsa_auth | String | RSA 认证:yes/no |
示例
{"password": "no", "pubkey": "no", "rsa_auth": "no"}
相关方法
SetPassword— 开启密码认证StopPassword— 关闭密码认证StopKey— 关闭密钥认证get_mysql_root— 获取 MySQL root 密码