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