> For the complete documentation index, see [llms.txt](https://doc.duaer.com/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.duaer.com/zh/build/ssh.md).

# 在 Duaer 里用 SSH 连远程主机

在 Duaer 里，SSH 默认 Authentication 是 Password，Resource 是 Command，Operation 是 Execute。Working Directory 默认是 /。
## 在远程跑一条命令

1. 先建 sshPassword 或 sshPrivateKey 凭据。
2. 搜索 SSH，接到上一个节点后面，选上凭据。
3. Authentication 与凭据类型一致（Password 或 Private Key）。
4. Resource 保持 Command，Operation 保持 Execute。
5. Command 填远程命令；Working Directory 默认 /。点执行此步骤。

Resource 选 File 时可 Upload 或 Download。上传用 Input Binary Field（默认 data）；下载用 Path 和 File Property（默认 data）。

命令跑在远程主机，不是 Duaer 本机。本机命令见 [在 Duaer 里用 Execute Command 跑主机命令](/zh/build/execute-command.md)。
## Questions

### Duaer 云端上的 SSH 节点能连我内网机器吗？

只有托管实例网络能到达的主机才行。内网机通常要自托管 Duaer，或先暴露可达地址。

