zhniu opened a new issue, #827:
URL: https://github.com/apache/mina-sshd/issues/827

   When the known_hosts file gets corrupted due to certain reasons (such as 
concurrent SSH writes), Such as:
   
   <img width="1176" height="255" alt="Image" 
src="https://github.com/user-attachments/assets/fa591a1e-f140-4c7a-b85b-871a8f0a6d6d";
 />
   
   Mina will throw an exception while parsing the known_hosts file. 
   Even if there are valid public keys in the known_hosts file, they won't be 
read out. 
   This causes the system to write a new public key into the local known_hosts 
file every time it connects to a server. After running for a long time, this 
will result in the known_hosts file occupying a very large amount of disk space.
   
   The code:
   
https://github.com/apache/mina-sshd/blob/c10dbcdaabf45fb53f3ce834d56d640b5893bca0/sshd-common/src/main/java/org/apache/sshd/client/config/hosts/KnownHostEntry.java#L206


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to