tinyssh
tinyssh copied to clipboard
Problems during runtime on Cygwin
Hi,
First of all, let me say I appreciate the work that's been put into this unique project; it's quite rare to see such a good, minimalist SSH server.
I'm trying to make use of TinySSH on Windows using Cygwin (using 3.0.7 which is the latest as of today) and despite managing to compile it successfully (no obvious error messages, process completes fully), I'm having some problems in what seems to be the "packet_hello.c" function:
I've modified the function a bit (the one with the tick doesn't produce an error while the one with a cross does) to produce some more debug output:
This is the output during runtime, which seems garbled:
Everything seems good from the client side, as shown by these OpenSSH and PuTTY logs:
I've not got any good leads to investigate but I believe this could either be a problem caused by Cygwin or perhaps a problem caused by the difference between Linux and Windows line terminators (not sure if the code takes this into account) ?
Many thanks for any assistance !
I've now tried with both the 32 bit version of Cygwin (setup-x86.exe) with a 32 bit compiler as well as the 64 bit version of Cygwin (setup-x86_64.exe) with a 64 bit compiler - see my previous post.
On the 32 bit version I'm getting the same garbled message (albeit a slightly longer one) with my modified "packet_hello_receive" function:
This is my compiler information (should I be using Mingw instead perhaps):
Sorry for late response, is the problem still relevant?