升级到Mac os Ventura 13.0 后 发现 ssh 无法交互
在.ssh 目录下 新建一个 config 文件,将下面这段话粘进去
ServerAliveInterval 60
TCPKeepAlive=yes
Host *
KexAlgorithms +diffie-hellman-group1-sha1
HostkeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa