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

Re: Key exchange fail


Hi,
do you have some error?

Please, try to set the libssh log level to SSH_LOG_TRACE. It will then
print more information about what is going on under the hood and might
show up some path to the failure.

Jakub

On Fri, Mar 28, 2025 at 12:20 PM Yusuf Saka <yusufsaka5481@xxxxxxxxx> wrote:
>
> Hey there,
>
> I recently read your docs on implementing a ssh connection and read one of your example codes called ssh_server.c which works quite fine in my own device. I've been trying to implement the C++ version of this code with classes in play for days but the code just won't work. I am trying to create a ssh server with threads (pthread) mainly and it fails in
> ssh_server.cpp
> in handle_session function at line 187.
> KEY_FILE macro is defined in my cmake file. I've been able to get connection but key exchange fails somehow.
> I've been trying to solve the problem for few days now and being a beginner in programming it is starting to get quite frustrating so I've decided to reach out for help.
>
> Best regards
>
>


Follow-Ups:
Re: Key exchange failYusuf Saka <yusufsaka5481@xxxxxxxxx>
References:
Key exchange failYusuf Saka <yusufsaka5481@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org