Use Windows' built-in shell tool to connect to the server

connection method

WIN + R Add a running window to the lower right, enter cmd to open the command window and use:

SSH 用户@IP地址   //  ssh [email protected]

Error causes and solutions

error 1

When the following error occurs when using the cmd window to connect to ssh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:7uLtXKSBa4XViMbzD7rPENgcmieNtQYcqNDtz8MDMOQ.
Please contact your system administrator.
Add correct host key in C:\\Users\\lolit/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\lolit/.ssh/known_hosts:3
Host key for 10.10.10.10 has changed and you have requested strict checking.
Host key verification failed.

Reason:
Authentication credentials will be generated when SSH connects, and when the server is reset or changed, the credentials will change when the server is reset or changed. Inconsistencies will result in failure to connect.
Solution: //Delete the ip public key information in ~/.ssh/known_hosts

ssh-keygen -R 服务器地址

Reconnect after deleting

error 2

When the following error occurs when using the cmd window to connect to ssh

[email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

Reason:
After the server is reset, the general operator policy is that the default root user has no password.
Solution:
Log in to the operator platform to set a password for the instance, and reconnect after setting.

Guess you like

Origin blog.csdn.net/shoujoai/article/details/129467548