小编Eug*_*sky的帖子

没有密码的 ssh localhost 在 Fedora 14 上不起作用

我表现:

$ 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更改StrictModesno并重新启动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)

fedora ssh rhel

5
推荐指数
1
解决办法
2589
查看次数

标签 统计

fedora ×1

rhel ×1

ssh ×1