SSH 本地主机出现问题

SSH 本地主机出现问题

我正在尝试将我的 UTM 虚拟机连接到 Mac 上的主机终端。我使用的是 ubuntu 22.04.3。我的 VM 设置了端口转发,客户端口为 22,主机端口为 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

相关内容