To solve ssh Public Key authorization failure, follow these steps: 1. the client generates id_rsa.pub and id_rsa2. the server is. ssh/authorized_keys is also added to id_res.pub3 of the client. /etc/ssh/sshd_config enabled: Shell code www.2cto. comRSAAuthenticat... 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
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.