git服务器-------》用户免密git操作

找到/etc/ssh/sshd_config文件 

开启

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile      .ssh/authorized_keys
 .ssh 目录的权限必须是0700
.ssh/authorized_keys 文件权限必须是0600
否则公钥认证不会生效。

原文地址:https://www.cnblogs.com/gzyx1988/p/4972133.html