Subj : Re: MysticBBS 1.12a47 + ubuntu 22.04 + SSH = ?
To   : claw
From : Kim
Date : Sun May 08 2022 10:43 pm

> (Just updating to say that I did try recompiling 3.4.6, which is the latest,
> and it didn't work. Behaviour is slightly different in that it doesn't hang
> forever then not work -- it disconnects right away. But otherwise, still no
> dice, nothing in the node logs, no errors in mis startup.)

Okay, I've solved this. In case someone else comes across this thread, I
believe this to have been the issue:

Initially, I tried using cryptlib 3.4.6, which doesn't work. However, it does
create an ssl.cert file. Later, I tried every other available version of
cryptlib linked from the Mystic site, and the behaviour seemed unchanged.

I did make one error -- I didn't realize that mis.log only gets written out
when you shut down the BBS. So often I was looking at stale mis.log entries.
When I determined that, I saw that with newer versions (3.4.5 and 3.4.6 only),
I was seeing the following:

+ 2022.05.09 05:23:11  SSH Listening on IPV4 port 2222 using interface
"0.0.0.0"
+ 2022.05.09 05:23:11  EVENT Starting 0 event(s)
+ 2022.05.09 05:23:36  SSH > Connect on slot 1/5 (192.168.123.14)
+ 2022.05.09 05:23:36  SSH 1-HostName Unknown
+ 2022.05.09 05:23:36  SSH 1-Negotiating SSH session
+ 2022.05.09 05:23:36  SSH Unable to set key (-2 )
+ 2022.05.09 05:23:36  SSH 1-Session failed

Which pointed to an issue with the key.

Shutting down mis, deleting (well, backing up) data/ssl.cert, replacing
/usr/lib/libcl.so with version 3.4.5, starting mis back up, trying to connect
and letting it generate a new ssl.cert, and then trying to connect again
worked.

Now it seems to work reliably, on 3.4.5.

Thanks for the suggestions and help, everyone!