【发布时间】:2018-08-22 16:42:12
【问题描述】:
从 ePass2003 配置 SSH 密钥以访问服务器。
我在 VirtualBox 上有一个来宾 ubuntu 16.04,我能够从 VM SSH 服务器 1,但是从服务器 1 SSH 到服务器 2 时,出现以下错误。
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug2: input_userauth_pk_ok: fp SHA256:M0HzYuvGQ8LcKpJIGPgQDrN6Xs8jpyjH4wRQdslGeV
debug3: sign_and_send_pubkey: RSA SHA256:M0HzYuvGQ8LcKpJIGPgQDrN6Xs8jpyjH4wRQdslGeV
**sign_and_send_pubkey: signing failed: agent refused operation**
当我在服务器 2 上运行 ssh-add -l 时,我可以看到以下输出。
$ ssh-add -l
error fetching identities for protocol 1: agent refused operation
2048 SHA256:M0HzYuvGQ8LcKpJIGPgQDrN6Xs8jpyjH4wRQdslGeV /usr/lib/x86_64-linux-gnu/opensc-pkcs11.so (RSA)
我在 /etc/ssh/sshd_config 文件中设置了 AllowAgentForwarding 是。但是从 Server1 获得与 Server2 的 SSH 连接仍然没有运气。 如果有人能帮助我度过难关,那就太好了。
提前致谢!!
【问题讨论】:
标签: ssh-keys