CentOS6.4 configure SSH without a password

Source: Internet
Author: User
CentOS6.4 configuration without a password SSHCentOS6.4 network management is quite strict. Simple $ ssh-keygen-tdsa-P & amp; #39; & amp; #39;-f ~ /. Ssh/id_dsa $ cat ~ /. Ssh/id_dsa.pub & gt ;~ The/. ssh/authorized_keys command does not run CentOS 6.4. the password-less SSH CentOS 6.4 configuration is strictly related to network management. Simple $ ssh-keygen-t dsa-p'-f ~ /. Ssh/id_dsa $ cat ~ /. Ssh/id_dsa.pub> ~ The/. ssh/authorized_keys command cannot achieve password-less SSH login. Three things are required. 1. disable SElinux # vi/etc/selinux/config and set SELINUX = disabled. 2. change the permission $ chmod 600 ~ /. Ssh/authorized_keys $ chmod 700 ~ /. Ssh 3. log out and log on to use ssh localhost again. OK.

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.