大佬教程收集整理的这篇文章主要介绍了linux – WordPress无法找到ssh公钥和私钥对,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经安装了lib2ssh并且它正在工作(wordpress承认它存在).
我提供给wordpress的用户(称为playwithbits)是chrooted,其主目录为/ home / Nginx / domains / playwithbits /
公钥和私钥位于/ home / Nginx / domains / playwithbits / keys /目录中,分别命名为id_rsa.pub和id_rsa.
我已将id_rsa.pub的内容复制到位于/home/Nginx/domains/playwithbits/.ssh/中的authorized_keys文件中
我没有为密钥文件设置密码.但是wordpress不断返回错误:
我已向wordpress提供以下信息
Hostname: localhost Username: playwithbits password: Blank Public key: /keys/id_rsa.pub //I have also tried the paths from server root Private key: /keys/id_rsa@H_404_21@drwx------ 2 playwithbits playwithbits 4096 Jun 8 11:25 .ssh drwx------ 2 playwithbits playwithbits 4096 Jun 8 13:27 keys -rw------- 1 playwithbits playwithbits 414 Jun 8 11:21 authorized_keys -rw------- 1 playwithbits playwithbits 1.7K Jun 6 02:17 id_rsa -rw-r--r-- 1 playwithbits playwithbits 414 Jun 6 02:17 id_rsa.pub@H_404_21@我也试图在调试模式下连接,我得到以下输出:
Connection from 127.0.0.1 port 56674 debug1: Client protocol version 2.0; client software version libssh2_0.18 PHP debug1: no match: libssh2_0.18 PHP debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version String SSH-2.0-OpenSSH_5.8 debug1: peRMANently_set_uid: 74/74 debug1: list_hostkey_types: ssh-rsa,ssh-dss debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: client->server aes256-cbc hmac-sha1 none debug1: kex: server->client aes256-cbc hmac-sha1 none debug1: expecTing SSH2_MSG_KEXDH_INIT debug1: SSH2_MSG_NEWKEYS sent debug1: expecTing SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: KEX done Received disconnect from 127.0.0.1: 11: PECL/ssh2 (http://pecl.PHP.net/packages/ssh2) debug1: do_cleanup debug1: do_cleanup@H_404_21@有谁知道为什么我不能使用公钥和私钥访问?如果我使用帐户的密码,则wordpress可以登录并执行更新.
@H_278_30@match group web-root-locked ChrootDirectory /home/Nginx/domains/%u X11ForWARDing no AllowTcpForWARDing no ForceCommand internal-sftp AuthorizedKeysFile /home/Nginx/domains/%u/.ssh/authorized_keys@H_404_21@playwithbits是web-root-locked的成员
以上是大佬教程为你收集整理的linux – WordPress无法找到ssh公钥和私钥对全部内容,希望文章能够帮你解决linux – WordPress无法找到ssh公钥和私钥对所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。