小编Add*_*die的帖子

SSH 公钥认证

我一直有麻烦试图使用ssh连接到我的树莓派服务器来验证我的MacBook Air的客户。关于为什么这不起作用有什么建议吗?


我尝试过的事情:

  • 创建一个 ssh 密钥并将公钥复制到服务器的~/.ssh/authorized_keys文件夹中
  • 启用端口转发到端口 777(使用该端口进行 SSH)
  • 在我的服务器上为~/.ssh~/.ssh/*文件夹设置权限
  • 在我的服务器/etc/ssh/sshd_config文件中启用 RSAAuthentication 和 PubkeyAuthentication

客户端的日志:

>>> ssh -vvv -i ~/.ssh/id_rsa pi@raspberrypi.local
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to raspberrypi.local [192.168.0.13] port 777.
debug1: Connection established.
debug3: Incorrect RSA1 identifier
debug3: Could not load "/Users/addie/.ssh/id_rsa" as …
Run Code Online (Sandbox Code Playgroud)

linux ssh authentication openssh raspberry-pi

3
推荐指数
1
解决办法
620
查看次数

标签 统计

authentication ×1

linux ×1

openssh ×1

raspberry-pi ×1

ssh ×1