Configure the SecureCRT ssh key to log on to the remote host.

Source: Internet
Author: User

[Ggp @ test182 ~] $ Ll. sshtotal 8-rw-r -- r -- 1 ggp 588 Sep 25 authorized_keys [ggp @ test182 ~] $ Ll. ssh/authorized_keys-rw-r -- r -- 1 ggp 588 Sep 25. ssh/authorized_keys [ggp @ test182 ~] $

Remember to change the. ssh permission to 700, and change the authorized_keys permission to 644. The above two permissions seem to be appropriate.

The user and group of. ssh and authorized_keys are ggp. ggp instead of root. root.

Otherwise, you may not be able to log on normally.

Server/etc/ssh/sshd_config Configuration

OpenSSH configuration is usually stored in:/etc/ssh/sshd_config
PermitRootLogin no # prohibit root User Login
StrictModes yes # Check whether the key user and permissions are correct.
RSAAuthentication yes # enable RSA Authentication
AuthorizedKeysFile. ssh/authorized_keys # verify the storage path of the Public Key
PubkeyAuthentication yes # enable Public Key Authentication
PasswordAuthentication no # password authentication is disabled. It is enabled by default.


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.