To solve ssh Public Key Authorization failure, follow these steps: 1. the client generates id_rsa.pub and id_rsa 2. the server is. ssh/authorized_keys is also added to id_res.pub 3 of the client. /etc/ssh/sshd_config enabled: Shell code www.2cto.com RSAAuthentication yes PubkeyAuthentication yes AuthorizedKeysFile. the Shell code Permission denied (publickey, gssapi-keyex, gssapi-with-mic ). on this page, I accidentally saw the cause:
Http://serverfault.com/questions/230771/ssh-configuration-publickeys-permission-denied-publickey-password-error is TM SELinux caused by the disaster, close SELinux to solve the problem: Temporarily Closed (recovery after restart): Shell code www.2cto.com setenforce 0 permanently closed (need to restart ): shell code vi/etc/selinux/config SELINUX = disabled another: ssh supports both publickey and password authorization methods. publickey is disabled by default and must be set to yes. If the client does not have. ssh/id_rsa, use password authorization; If yes, use publickey authorization; If publickey authorization fails, password authorization will continue. Author: flysnowxf