Hi, Thanks to the community for all the answers I get is very helpful. Just a little context: I'm writing a wrapper around libssh for Smalltalk language (more specific for GemStone/S Smalltalk). My knowledge of C is very limited compared to your knowledge so maybe in some questions I can ask some nonsense :)
So far I connected to the server now implementing authentication. The server is 'localhost' but when calling "ssh_session_is_known_server()" it answer 2 (SSH_KNOWN_HOSTS_CHANGED). Checking the code: