You need to install Git under Windows, or other software that can execute shell commands
1, first to modify the SSH configuration file
vi/etc/ssh/sshd_config# Modify config file # If the # comment, cancel the # and change to the following configuration: Rsaauthentication is set to Yes, #意思是设置开启使用RSA算法的基于rhosts的安全验证 ; Pubkeyauthentication is set to Yes #意思是设置开启公钥验证; Authorizedkeyfiles #后面的目录, is the file that you upload the public key to save; Strictmodes set to No # It means to set the shutdown SSH to check the permissions and ownership of the user home directory and the rhosts file before receiving the login request.
2, and then generate local key, local file path generation process will be prompted
3, the public key (*.pub) with the tool to the Linux, Ftp,secure CRT and so on, to the account you want to password-free login directory
#比如是git用户/home/gituser/.ssh
4, there will be a file called Authorized_keys, is used to save the public key, the public key written in
Cd/home/git/.sshcat id_rsa.pub >> authorized_keys# The public key is deleted and restarted on the line service sshd restart
Configure SSH without password login Linux