[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: sessionIsServerKnow function


 Hi,
(Accidentally send a partial mail)
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 answers 2 (SSH_KNOWN_HOSTS_CHANGED).
Checking the code:
    /**
     * The server key has changed. Either you are under attack or the
     * administrator changed the key. You HAVE to warn the user about a
     * possible attack.
     */
Is this normal for 'localhost' ? Or it should answer 1 (SSH_KNOWN_HOSTS_OK)
?
If it should answer 1 then what can be the situation for 2 result with
localhost ?

thank you for your patience...
regards,
bruno

El jue., 2 jul. 2020 a las 11:21, Bruno Buzzi Brassesco (<
bruno.brasesco@xxxxxxxxx>) escribió:

> 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:
>

Follow-Ups:
Re: sessionIsServerKnow functionJakub Jelen <jjelen@xxxxxxxxxx>
References:
sessionIsServerKnow functionBruno Buzzi Brassesco <bruno.brasesco@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org