Configure SSH without password login Linux

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.