---
title: "尝试通过SSH链接远程服务器"
method: PUT
path: "/v2/nodes/login"
tags: ["v2"]
---

# 尝试通过SSH链接远程服务器

`PUT /v2/nodes/login`

## Request

- The document declares no server URL.
- Auth: none declared

try to connect to ssh

## Request body

- object
  - `hostport` string, required: ip:端口 in: body
  - `hosttype` string, required: 节点类型 in: body
  - `pwd` string: root密码 in: body
  - `type` boolean, required: 登录类型 in: body

## Response `200`

{"bean":{"hostport":"10.0.55.73:22","type":true,"result":"success"}}

---

[API](https://skmtc.dev/goodrain/apis/goodrain-cmd-api.md) - [All operations](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/llms.txt) - [OpenAPI document](https://skmtc.dev/goodrain/apis/goodrain-cmd-api/revisions/8c773e222448?raw)
