一段时间以来,我的 MacBook (Big Sur) 上的 ssh 一直存在问题。我首先注意到的是 git。现在我尝试连接到虚拟机,输入密码后,终端冻结了一段时间,然后我得到:
client_loop: send disconnect: Broken pipe。我尝试添加 ServerAliveInterval、IPQoS 和我找到的其他解决方案,但似乎没有任何效果。
Host *
SendEnv LANG LC_*
ServerAliveInterval 120
IPQoS lowdelay throughput
ServerAliveCountMax 5
Run Code Online (Sandbox Code Playgroud)
这是详细的输出:
ssh -vvv mmm@server
OpenSSH_8.1p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/mmm/.ssh/config
debug1: /Users/mmm/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 47: Applying options for *
debug1: Connecting to server port 22.
debug1: Connection established.
debug1: identity file /Users/mmm/.ssh/id_rsa type 0
debug1: identity file /Users/mmm/.ssh/id_rsa-cert …Run Code Online (Sandbox Code Playgroud)