[Solved] item2 Error: a session ended very soon after starting. check that the command in profile default

At the weekend, the Alibaba cloud ECS instance password was modified. When Item2 was used to remotely connect to the server again, the following error was reported:


Every time a new connection ssh remote use, will be in ~/.ssh/known_hoststhe secret documents generated ssh key pair on updating the remote password, you need to delete the corresponding ssh keys. Otherwise, an error will be reported.


Locate the file ~ /.SSH/known_Hosts, find the IP you want to connect remotely and delete the corresponding secret key. For example, I connect remotely, and delete the box in the following figure:

Similar Posts: