在Cygwin下使用SSHD配置公钥认证
我正在尝试配置SSHD以允许在Windows Server 2012上的Cygwin下进行公钥认证。目前我的问题是访问被拒绝。我已确认我的公钥在用户的.ssh目录中的authorized_keys和authorized_keys2中保存为一行。下面你会看到我用来连接的命令,我尝试使用私钥连接SSH的详细输出,以及我的SSHD配置。我试图使用的私钥是RSA PEM格式。 我也尝试在我的配置中添加RSAAuthentication Yes,但这会导致SSHD在启动时失败。 当RSAAuthentication YES在SSHD配置中时,我得到它低于错误。 cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062: The service has not been started. SSH连接命令 ssh -v -i id_rsa.pem <USER>@<SERVER ADDRESS> SSHD配置 PasswordAuthentication no UsePAM no PubkeyAuthentication yes 详细输出 OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /etc/ssh_config debug1: …