我尝试使用来自网络的资源(将授权密钥设置为我的公钥)在我的mac上设置无密码ssh。
我第一次进入自己的机器(ssh user @ mymachine)我能够在没有ssh的情况下登录。
下次我这样做时,我会被要求提供密码短语。
我在我的linux机器上执行了相同的程序,一切正常。不确定我错过了什么。任何帮助表示赞赏。
首次执行" ssh -v localhost"
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering DSA public key: /Users/<usrname>/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-dss blen 433
debug1: Authentication succeeded (publickey).
Authenticated to localhost ([::1]:22).
debug1: channel 0: new [client-session]
debug1: Requesting no-more-sessions@openssh.com
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
Last login: Mon Feb 9 17:22:22 2015
第二次&#34; ssh -v localhost&#34;
debug1: Server accepts key: pkalg ssh-dss blen 433
debug1: key_parse_private_pem: PEM_read_PrivateKey failed
debug1: read PEM private key done: type <unknown>
Enter passphr`enter code here`ase for key '/Users/<username>/.ssh/id_rsa':
请帮忙。如果我需要发布任何进一步的信息,请告诉我