小编use*_*470的帖子

SSH 要求输入密码

我已经 :

  • 安装了服务器
  • 使用 -P "" 生成 pub/pri 密钥
  • 将 id_rsa.pub 复制到 authorized_keys
  • ssh localhost > 回答“是”,复制到known_hosts
  • 试过 ssh localhost >> 仍然要求输入密码

输出:

hduser@hduser1-desktop:~$ ssh -v localhost
OpenSSH_5.3p1 Debian-3ubuntu7, OpenSSL 0.9.8k 25 Mar 2009
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/hduser/.ssh/identity type -1
debug1: identity file /home/hduser/.ssh/id_rsa type 1
debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048
debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048
debug1: identity file /home/hduser/.ssh/id_dsa …
Run Code Online (Sandbox Code Playgroud)

ssh password

5
推荐指数
2
解决办法
2668
查看次数

标签 统计

password ×1

ssh ×1