Windows uses Xshell password-free login Remote Linux Server tutorial
1. Generate the private key using Xshell self-tool
Steps:
650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/76/73/wKioL1ZT8m2Cmyt9AACR1gbDK3Q497.png "style=" float: none; "title=" Qq20151124130443.png "alt=" Wkiol1zt8m2cmyt9aacr1gbdk3q497.png "/>
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/76/73/wKioL1ZT8m6CAJv4AACBUM31eQ8389.png "style=" float: none; "title=" Qq20151124130617.png "alt=" Wkiol1zt8m6cajv4aacbum31eq8389.png "/>
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/76/73/wKioL1ZT8m-C0PmdAABoK5wPisw011.png "style=" float: none; "title=" Qq20151124130636.png "alt=" Wkiol1zt8m-c0pmdaabok5wpisw011.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/76/73/wKioL1ZT8m_C2s3rAABvPZw1Kuc610.png "style=" float: none; "title=" Qq20151124130737.png "alt=" Wkiol1zt8m_c2s3raabvpzw1kuc610.png "/>
650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/76/73/wKioL1ZT8nCx3zfLAACMIfOmL8I959.png "style=" float: none; "title=" Qq20151124130909.png "alt=" Wkiol1zt8ncx3zflaacmifoml8i959.png "/>
2. Generate keys on Linux server side
1. Generate server-side key command
#ssh-keygen
(Save location By default, all carriage return.) )
3. Copy the local key to the remote Linux server side
1. Copy the local key to the remote Linux server side
650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M01/76/73/wKioL1ZT8nHD5CJNAAAwLd1XU80034.png "title=" Qq20151124131106.png "alt=" Wkiol1zt8nhd5cjnaaawld1xu80034.png "/>
2. Name the local key Authorized_keys
#cat Local keys >> Authorized_keys
3. Place the ~/.ssh/under and the permission is 600.
#chmod Authorized_keys
Note: If the user home directory does not have an. SSH directory, it needs to be created with a permission of 700.
#mkdir-M ~/.ssh
4. Login with key (password-free login):
650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M01/76/75/wKiom1ZT9XnxAEF-AACLk7QOfcg648.png "title=" 1.png " alt= "Wkiom1zt9xnxaef-aaclk7qofcg648.png"/>
Note: Bad permission settings will result in the inability to use password-free login!
This article is from the "Learning and Exchange" blog, please be sure to keep this source http://chenhaolinux.blog.51cto.com/9609922/1716330
Windows uses Xshell password-free login Remote Linux Server tutorial