Subj : Re: SSH error: Unable to set key (-2)
To   : MobbyG
From : Warpslide
Date : Wed Aug 18 2021 09:56 pm

On 18 Aug 2021, MobbyG said the following...

Mo> Unable to set key (-2)

Mo> Based on the error it's something with the encryption key, so I am not
Mo> sure where to start looking or what it could be. I installed Libcrypt
Mo> successfully, but maybe somehting is off? I'm not sure. ANyone seen this
Mo> error or have any thoughts?

Mo> --- Mystic BBS v1.12 A47 2021/04/08 (Raspberry Pi/32)

I believe the key is located at mystic/data/ssl.cert:

pi@bbs:~/mystic/data $ ll ssl.cert
-rw------- 1 pi pi 1.8K May 28 09:30 ssl.cert

pi@bbs:~/mystic/data $ stat -c "%a %n" ssl.cert
600 ssl.cert


Make sure the permissions are set correctly, adjust if necessary:

chmod 600 ssl.cert


I'm unsure how to regenerate the file though if you can't restore it from backup.  I know Mystic generated mine, just not sure how/when.


Jay

... HANGOVER: the wrath of grapes.

--- Mystic BBS v1.12 A47 2021/08/17 (Raspberry Pi/32)
* Origin: Northern Realms (21:3/110)