我表现:
$ ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
Run Code Online (Sandbox Code Playgroud)
然后/etc/ssh/sshd_config
更改StrictModes
为no
并重新启动sshd。
我有:
$ ssh localhost
Agent admitted failure to sign using the key.
dev@localhost's password:
Run Code Online (Sandbox Code Playgroud)
怎么了?如何ssh localhost
在没有密码的情况下工作?
更新:
$ ssh -v localhost
OpenSSH_5.5p1, OpenSSL 1.0.0e-fips 6 Sep 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/dev/.ssh/id_rsa type 1
debug1: identity file /home/dev/.ssh/id_rsa-cert …
Run Code Online (Sandbox Code Playgroud)