SSH key login, the selected user key is not registered on the remote host; SSH login log, successful login, failed login

Source: Internet
Author: User

The cause of the error occurred

. SSH Directory Permissions issues

File permissions error under. ssh/Path

The client uses a key error to detect if the key is correct



Check the. SSH directory permissions, must be 700

LL. SSH

drwx------2 root root 4096 January 16:34 ssh


Detection. ssh/path file permissions, Id_rsz.pub and Authorized_keys permissions 644, or (ps:.ssh/path can only have authorized_keys files, the client takes the server private key to log on)

LL. ssh/

-rw-r--r--1 root root 397 January 15:41 Authorized_keys

-RW-------1 root root 1679 January 15:41 Id_rsa

-rw-r--r--1 root root 397 January 15:41 id_rsa.pub

-rw-r--r--1 root root 192 January 16:29 known_hosts


-----------------------------------------------------------------------------------------

Tail/var/log/secure

View SSH Login Security log


Service sshd Status

View the status of the Sshd service, including records of successful or failed users


Last-n 50

See the last 50 successful login user information


Lastb-n 50

View the last 50 unsuccessful login user information (view attack IP)


SSH key login, the selected user key is not registered on the remote host; SSH login log, successful login, failed login

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.