小编Nav*_*een的帖子

cygwin上的公钥认证问题

我一直在cygwin上尝试"ssh localhost"(我使用的是WIndows 7),但它一直要求输入密码.

当我做"ssh -vvv localhost"时,我发现公钥认证没有发生(或失败).因此,它要求输入密码.

debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug3: start over, passed a different list publickey,password,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/xxxxxxxx/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
Run Code Online (Sandbox Code Playgroud)

我不确定它是否无法读取authorized_keys文件,或者是否存在超时问题,或者验证失败了?有没有办法获得更多细节?

我已完成以下步骤:

  • SSH-主机配置.对所有人回答是.
  • 生成RSA密钥并将其添加到authorized_keys文件中.
  • net start sshd
  • ssh localhost

这些是权限:

-rw------- 1 xxxxxxxx mkgroup  402 May 18 16:34 authorized_keys …
Run Code Online (Sandbox Code Playgroud)

ssh cygwin localhost public-key

8
推荐指数
1
解决办法
2万
查看次数

标签 统计

cygwin ×1

localhost ×1

public-key ×1

ssh ×1