You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Mac主机SSH连接UTM Ubuntu虚拟机无响应问题排查求助

Mac主机SSH连接UTM Ubuntu虚拟机无响应问题排查求助

大家好,我目前遇到了一个SSH连接的问题,想请各位帮忙分析下:

我在Mac主机上用UTM运行Ubuntu 22.04.3虚拟机,已经在UTM里配置了端口转发——将虚拟机的22端口(SSH默认端口)映射到主机的2222端口。

但当我在主机终端执行命令 ssh benwal@localhost -p 2222 时,没有任何错误提示,进程就一直挂着:既不要求我输入密码,也不会自行终止,完全没有响应。

我试着用 verbose 模式运行了命令 ssh -vvvvv benwal@localhost -p 2222,得到的输出如下:

OpenSSH_8.6p1, LibreSSL 3.3.6

debug1: Reading configuration data /Users/benwalderman/.ssh/config

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files

debug1: /etc/ssh/ssh_config line 54: Applying options for *

debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/benwalderman/.ssh/known_hosts'

debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/benwalderman/.ssh/known_hosts2'

debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling

debug1: Connecting to localhost port 2222.

debug1: Connection established.

debug1: identity file /Users/benwalderman/.ssh/id_rsa type 0

debug1: identity file /Users/benwalderman/.ssh/id_rsa-cert type -1

debug1: identity file /Users/benwalderman/.ssh/id_dsa type -1

debug1: identity file /Users/benwalderman/.ssh/id_dsa-cert type -1

debug1: identity file /Users/benwalderman/.ssh/id_ecdsa type -1

debug1: identity file /Users/benwalderman/.ssh/id_ecdsa-cert type -1

debug1: identity file /Users/benwalderman/.ssh/id_ecdsa_sk type -1

debug1: identity file /Users/benwalderman/.ssh/id_ecdsa_sk-cert type -1

debug1: identity file /Users/benwalderman/.ssh/id_ed25519 type -1

debug1: identity file /Users/benwalderman/.ssh/id_ed25519-cert type -1

debug1: identity file /Users/benwalderman/.ssh/id_ed25519_sk type -1

debug1: identity file /Users/benwalderman/.ssh/id_ed25519_sk-cert type -1

debug1: identity file /Users/benwalderman/.ssh/id_xmss type -1

debug1: identity file /Users/benwalderman/.ssh/id_xmss-cert type -1

debug1: Local version string SSH-2.0-OpenSSH_8.6

从输出看连接已经建立了,但之后就没有后续的认证步骤,完全卡在这儿。有没有大佬能帮我看看问题出在哪儿?

备注:内容来源于stack exchange,提问作者benwal

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.20 07:39:38