当我尝试与Mac配对时,我得到以下信息:An error occurred while trying to establish an SSH connection with SSH keys to 'IP'。然而,使用ssh通过cmd连接到我的mac,它工作得很好,但由于某种原因,VS未能做到这一点。
An error occurred while trying to establish an SSH connection with SSH keys to 'IP'
62o28rlo1#
以下步骤有效:1.将这些行添加到/etc/ssh/sshd_config:
/etc/ssh/sshd_config
HostkeyAlgorithms +ssh-rsa PubkeyAcceptedAlgorithms +ssh-rsa
1.保存文件1.重新启动sshd1.重新启动Visual Studio原始配方如下:Visual Studio 2022 won't connect via SSH on macOS after upgrading to Ventura
1条答案
按热度按时间62o28rlo1#
以下步骤有效:
1.将这些行添加到
/etc/ssh/sshd_config
:1.保存文件
1.重新启动sshd
1.重新启动Visual Studio
原始配方如下:Visual Studio 2022 won't connect via SSH on macOS after upgrading to Ventura