SSH connection Error

Source: Internet
Author: User

There may be some strange errors when SSH is parsed here:


1. SSH does not allow root login

The following error is reported when SSH is connected:

[Email protected] ~]# ssh-p 10022 [email protected]

[email protected] ' s password:

Permission denied, please try again.

[email protected] ' s password:

Permission denied, please try again.

[email protected] ' s password:

Permission denied (Publickey,gssapi-keyex,gssapi-with-mic,password).


The password entered is correct but cannot be connected.

This is because the destination host does not allow root login and is a secure policy. You can modify the configuration on the destination host:

Vi/etc/ssh/sshd_config

Change Permitrootlogin No to Permitrootlogin Yes

And then

/etc/init.d/sshd restart

You can log in again.


2, SSH does not authenticate password-based authentication

The error is as follows when SSH connects:

[Email protected] ~]# ssh-p 10022 [email protected]

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).


Do not give the opportunity to enter a password.

Because the authentication of passwords is not allowed on the destination host, it is always safe to allow only host connections with public keys. To modify the destination host configuration:

Vi/etc/ssh/sshd_config

Change Passwordauthentication No to passwordauthentication Yes

/etc/init.d/sshd restart

You can log in again.


3, fingerprint information does not match

This is the case when SSH occurs:

[[Email protected]]# ssh 192.168.1.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ warning:remote HOST Identification has changed! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT is POSSIBLE this SOMEONE is DOING SOMETHING nasty!
Someone could is eavesdropping on your right now (Man-in-the-middle attack)!
It is also possible, the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
07:6c:c2:ce:82:d6:77:3c:b0:20:b0:e0:f2:2d:47:84.
Please contact your system administrator.
Add correct host key in/root/.ssh/known_hosts to get rid of the this message.
Offending key In/root/.ssh/known_hosts:5
RSA host key for 192.168.1.3 had changed and you have requested strict checking.
Host Key verification failed.


This is mainly a fingerprint verification failure caused by the previous connection to the host, but now the information has changed, so resulting in a mismatch. The fingerprint information of the host computer will be available locally.


>/root/.ssh/known_hosts

Connect again


SSH connection Error

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.