---
title: "Winbox、WebSSH 和 WebProxy 错误 | Wantastic Docs"
description: "Winbox、WebSSH 或 WebProxy 浏览器失败时的控制台消息，以及每种情况最简单的修复方法。"
url: "https://wantastic.app/zh/docs/errors-remote-tools"
category: "Troubleshooting"
reading_time: "6 分钟"
---

# Winbox、WebSSH 和 WebProxy 错误

Winbox、WebSSH 或 WebProxy 浏览器失败时的控制台消息，以及每种情况最简单的修复方法。

> **Outcome:** Winbox、WebSSH 和 WebProxy 会话打开正确的设备。

## Before you start

- 目标设备在 Devices 中处于 Online 状态。
- 设备上已开启相应服务（Winbox、SSH 或网页界面）。

## 开始之前

- 先确认设备处于 Online 状态。远程工具使用同一条隧道。
- 超时：设备离线或路径被阻断。
- 拒绝连接：服务已关闭或使用了其他端口。
- 认证失败：保存的用户名或密码错误。

## 检查要点

1. 设备是否 Online？如果不是，请参阅 故障排查：从这里开始。
2. 端口是否开放？在设备上运行 Port Discovery，查找 8291（Winbox）、22（SSH）或网页端口。
3. 凭据是否正确？使用当前密码重新创建 Winbox 账号或 SSH 会话。
4. Winbox 无提示断开？检查 Allowed Client IPs。

*Console: Port Discovery 显示哪些服务可以通过隧道响应。*

1. 点击 Start Scan
2. 找到服务端口
3. 网页可尝试 Open (HTTPS)

*Console: 通过 Allowed Client IPs 和 Enabled 解决 Winbox 断开问题。*

1. 添加你的公网 IP，或清空列表
2. 点击 Save Allowed IPs
3. 确保 Enabled 已开启

## 速查表

| 错误 | 最简单的修复方法 |
| --- | --- |
| The connection timed out. … | 确认 Online；在路由器上启用 Winbox。 |
| Connection refused. … | 在端口 8291 上启用 Winbox。 |
| Winbox login failed. … | 使用当前密码重新创建账号。 |
| 无提示断开 | 检查 Allowed Client IPs。 |
| SSH connection failed. … | 确认 Online 且 SSH 正在运行。 |
| SSH authentication failed. … | 修正用户名、密码或密钥。 |
| Failed to load page | 尝试 Open (HTTPS) 或其他端口。 |

## Verify the result

- Winbox 显示路由器的 identity。
- WebSSH 显示 shell 提示符。
- WebProxy 加载设备网页。

## Common issues

### Winbox 超时。

```
The connection timed out. The device may be offline, slow, or Winbox might not be enabled on the target router.
```

- **Where:** 控制台 · Winbox
- **Likely cause:** 设备离线、Winbox 已关闭，或 Winbox 只允许其他地址访问。
- **Fix:** 确认设备处于 Online 状态，然后开启 Winbox，并允许你的局域网和 Wantastic 管理子网访问。

RouterOS 终端:

```routeros
/ip service set winbox disabled=no address=<lan-subnet>,<mgmt-subnet>
```

- **Verify:** Winbox 连接成功。

### Winbox 被拒绝。

```
Connection refused. Please verify that Winbox is enabled on the router and the port is correct.
```

- **Where:** 控制台 · Winbox
- **Likely cause:** Winbox 已关闭，或使用的端口与账号中的不同。
- **Fix:** 在端口 8291 上开启 Winbox，或使用正确的端口重新创建账号。

RouterOS 终端:

```routeros
/ip service set winbox disabled=no port=8291
```

- **Verify:** Winbox 连接成功。

### 设备无法访问。

```
Network error. The device is unreachable. Please check if the device is online.
```

- **Where:** 控制台 · Winbox
- **Likely cause:** 没有到该设备的隧道。
- **Fix:** 先让设备上线（参见 errors-mikrotik 或 故障排查：从这里开始）。

- **Verify:** 设备处于 Online 状态后，Winbox 即可连接。

### Winbox 登录失败。

```
Winbox login failed. Please check your username and password.
```

- **Where:** 控制台 · Winbox
- **Likely cause:** 保存的路由器密码错误或已更改。服务器日志会记录 "ECSRP-5 authentication failed"、"legacy authentication failed" 或 "all authentication methods failed"。
- **Fix:** 删除该 Winbox 账号，并使用当前的路由器用户名和密码重新创建。

- **Verify:** Winbox 登录成功。

### 已达到会话数量上限。

```
Maximum number of Winbox sessions reached for your tier. Please upgrade your plan to create more sessions.
```

- **Where:** 控制台 · Winbox
- **Likely cause:** 你的套餐没有空余的 Winbox 账号名额。
- **Fix:** 删除不用的账号或升级套餐。

- **Verify:** Create Session 成功。

### Winbox 通用错误。

```
Winbox connection failed. Please check the device is online.
```

- **Where:** 控制台 · Winbox
- **Likely cause:** 设备离线或隧道已断开。
- **Fix:** 在 Devices 中检查 Status 和 Last Seen。

- **Verify:** Winbox 连接成功。

### 创建会话时找不到设备。

```
The requested device or resource was not found.
```

- **Where:** 控制台 · New Winbox Session
- **Likely cause:** 设备已被删除，或你失去了对共享设备的访问权限。
- **Fix:** 刷新 Devices，并选择一台存在的设备。

- **Verify:** Create Session 成功。

### 创建会话时出现意外错误。

```
An unexpected error occurred while creating the session.
```

- **Where:** 控制台 · New Winbox Session
- **Likely cause:** 服务器错误。
- **Fix:** 重试。如果问题持续，请联系支持并提供时间和设备名称。

- **Verify:** Create Session 成功。

### 无法删除共享的 Winbox 账号。

```
Shared Winbox sessions cannot be deleted
```

- **Where:** 控制台 · Winbox
- **Likely cause:** 该账号属于设备所有者。
- **Fix:** 请所有者删除或停用该账号。

- **Verify:** 所有者已删除该账号。

### Winbox 连接后立即断开。

- **Where:** 原生 Winbox
- **Likely cause:** 你的公网 IP 不在 Allowed Client IPs 中（服务器日志："Client IP not in whitelist, rejecting connection"）。
- **Fix:** 添加你的 IP 或清空列表，然后点击 Save Allowed IPs。

- **Verify:** 连接保持正常。

### Winbox 断开：该账号没有隧道。

- **Where:** 原生 Winbox
- **Likely cause:** 无法通过隧道访问路由器（服务器日志："No WireGuard device found for tenant" 或 "Pre-flight failed: backend router unreachable via this core's tunnel"）。
- **Fix:** 让路由器上线，然后重试。

- **Verify:** 连接成功。

### 之前的 Winbox 窗口被关闭。

- **Where:** 原生 Winbox
- **Likely cause:** 每个令牌只允许一个会话。新的连接会替换旧连接。
- **Fix:** 为每位同时连接的人员分别创建一个 Winbox 账号。

- **Verify:** 两个会话都保持连接。

### WebSSH 无法连接。

```
SSH connection failed. Please check the device is online and SSH is enabled.
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** 设备离线、SSH 未运行、端口错误，或服务器报告 "ssh peer tunnel unavailable"。
- **Fix:** 确认设备处于 Online 状态且 SSH 正在运行。

设备 shell:

```bash
sudo systemctl restart ssh || sudo systemctl restart sshd
```

- **Verify:** WebSSH 显示提示符。

### WebSSH 登录失败。

```
SSH authentication failed. Please check your credentials.
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** 用户名、密码或密钥错误。
- **Fix:** 重新创建会话。将 Password 留空，即可改为在终端中输入密码。

- **Verify:** 登录成功。

### 无法创建 WebSSH 会话。

```
Failed to create SSH session: …
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** 原因在冒号之后。
- **Fix:** 在此列表中查找原因。

- **Verify:** 会话已创建。

### 已达到 SSH 容量上限。

```
SSH multiplexer pool at capacity (N)
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** 打开的会话过多。"SSH multiplexer session limit reached (N)" 和 "max sessions limit reached (N)" 属于同一情况。
- **Fix:** 关闭不用的会话后重试。

- **Verify:** 会话打开。

### SSH 连接中断。

```
SSH multiplexer transport is dead; retry with a new connection
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** 连接已断开。
- **Fix:** 创建新会话。

- **Verify:** 会话打开。

### 缺少用户名。

```
SSH username is required
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** Username 字段为空。
- **Fix:** 填写 Username。

- **Verify:** 会话已创建。

### 有密码短语但没有密钥。

```
SSH private key is required when a private key passphrase is provided
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** 已填写 Key Passphrase，但 Private Key 为空。
- **Fix:** 粘贴私钥，或清空密码短语。

- **Verify:** 会话已创建。

### 加密的密钥没有提供密码短语。

```
ssh: private key requires a passphrase
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** 该密钥受密码短语保护。
- **Fix:** 填写 Key Passphrase。

- **Verify:** 登录成功。

### 无法读取密钥。

```
ssh: failed to parse private key
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** 密钥只粘贴了一部分，或格式不受支持。"ssh: failed to parse encrypted private key" 表示密码短语或格式错误。
- **Fix:** 粘贴完整的密钥（包括 BEGIN 和 END 行），格式为 OpenSSH 或 PEM。

- **Verify:** 登录成功。

### 主机密钥已更改。

```
ssh: host key mismatch for <ip> (…)
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** 设备的 SSH 密钥已更改（重新安装，或该 IP 上换了另一台设备）。服务器会自动重试。
- **Fix:** 在信任该设备之前，确认它确实被更换或重新安装过。

- **Verify:** 会话打开。

### 提示次数过多。

```
ssh: too many keyboard-interactive authentication challenges
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** 设备要求多次输入（双因素登录）。
- **Fix:** 对此设备使用密钥登录。

- **Verify:** 登录成功。

### 无法启动 shell。

```
PTY request failed
```

- **Where:** 控制台 · WebSSH
- **Likely cause:** 设备拒绝分配终端。"failed to start shell" 和 "SSH handshake failed" 与此相关。
- **Fix:** 确认 SSH 服务器允许该用户使用终端和 shell。

- **Verify:** 出现提示符。

### WebProxy 无法打开。

```
Failed to open browser: <err>
```

- **Where:** 控制台 · Port Discovery
- **Likely cause:** 会话无法启动（设备离线、"max sessions limit reached (N)"、"peer_ip is required" 或 "invalid port: N"）。
- **Fix:** 确认设备处于 Online 状态，关闭不用的浏览器窗口，然后从端口卡片重试。

- **Verify:** 浏览器窗口打开。

### 页面无法加载。

```
Failed to load page
```

- **Where:** 控制台 · WebProxy 浏览器（"Connection Error"）
- **Likely cause:** 服务未监听、协议错误（HTTP 或 HTTPS），或设备响应过慢（"wpmux: send timeout (peer too slow)"、"wpmux: mux closed"）。
- **Fix:** 点击 Retry，或返回 Port Discovery 尝试 Open (HTTPS) 或 Open。

- **Verify:** 设备页面成功加载。

### 浏览器窗口中请求失败。

```
Request failed
```

- **Where:** 控制台 · WebProxy 浏览器
- **Likely cause:** 某个请求失败，或会话已过期（"session not found: <id>"）。
- **Fix:** 刷新页面。如果问题持续，从 Port Discovery 打开新的浏览器会话。

- **Verify:** 页面成功加载。

## Continue with

- [Winbox and RoMON through Wantastic](https://wantastic.app/zh/docs/winbox-romon): Open MikroTik Winbox on any router through winbox.wantastic.app with two tokens, including RoMON to routers behind a gateway.
- [WebSSH sessions](https://wantastic.app/zh/docs/webssh): Open an SSH terminal in the browser through the tunnel. Port 22 stays closed to the internet.
- [WebProxy for device web UIs](https://wantastic.app/zh/docs/webproxy): Open a router, NAS or camera web page in the console. No port forward needed.
- [MikroTik / RouterOS errors](https://wantastic.app/zh/docs/errors-mikrotik): Every [deploy], [backup] and [restore] FAIL message, plus RouterOS paste errors and handshake problems.
- [Troubleshooting: start here](https://wantastic.app/zh/docs/troubleshooting): Fix most problems in 3 steps. If that does not work, find your exact error in the table and open the matching guide.
- [Teams and shared access](https://wantastic.app/zh/docs/team-access): Share devices with teammates by email or link. Each person keeps their own login.
