我一直在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文件,或者是否存在超时问题,或者验证失败了?有没有办法获得更多细节?
我已完成以下步骤:
这些是权限:
-rw------- 1 xxxxxxxx mkgroup 402 May 18 16:34 authorized_keys …Run Code Online (Sandbox Code Playgroud)