[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sessionIsServerKnow function
  [Thread Prev] | [Thread Next]
 
 
- Subject: Re: sessionIsServerKnow function
- From: Bruno Buzzi Brassesco <bruno.brasesco@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 2 Jul 2020 11:25:20 -0300
- To: libssh@xxxxxxxxxx
 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:
>
| Re: sessionIsServerKnow function | Jakub Jelen <jjelen@xxxxxxxxxx> | 
| sessionIsServerKnow function | Bruno Buzzi Brassesco <bruno.brasesco@xxxxxxxxx> | 

