why is connection closed?

  • Posted December 13, 2014

step 1: I reboot, and the connection is closed. step 2:@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

I removed the known_hosts step 3: I can connection my server. But, Warning: Permanently added ‘’ (RSA) to the list of known hosts. Then, I enter my password. When it comes to changing my password, connection is closed…


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello dear If you have reinstalled Linux or UNIX with OpenSSH, you will get the above error. To get rid of this problem:


Remove keys

Use the -R option to removes all keys belonging to hostname from a known_hosts file. This option is useful to delete hashed hosts. If your remote hostname is or , enter:

$ ssh-keygen -R {}

$ ssh-keygen -R {}

and then

$ ssh-keygen -R

Sample output:

/home/vivek/.ssh/known_hosts updated.
Original contents retained as /home/vivek/.ssh/known_hosts.old

Now, you can connect to the host without a problem.

Have a nice day