• SSH Logins on Synchronet BBS?

    From Fratm@1:103/705 to All on Mon Feb 13 21:31:01 2023
    Hi Folks,

    Was wondering what it takes to get ssh logins working on Synchronet BBS? I just set my system up and was hoping to get that working too. It doesn't seem to want to listen on the proper port, the sbbs.ini file shows it listed in the options, and I moved the systems shell ssh to a different port in hopes not to have a port conflict, but still nope answer on port 22.

    Cheers,
    Fratm

    ---
    þ Synchronet þ Retro Roster a retro computing hub.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Fratm on Mon Feb 13 23:52:38 2023
    Re: SSH Logins on Synchronet BBS?
    By: Fratm to All on Mon Feb 13 2023 09:31 pm

    Hi Folks,

    Was wondering what it takes to get ssh logins working on Synchronet BBS? I just set my system up and was hoping to get that working too. It doesn't seem to want to listen on the proper port, the sbbs.ini file shows it listed in the options, and I moved the systems shell ssh to a different port in hopes not to have a port conflict, but still nope answer on port 22.

    What is the terminal server log output reporting?

    Normally, nothing special is required to get ssh logins working with SBBS.
    --
    digital man (rob)

    Synchronet "Real Fact" #124:
    The Loons - "Ten Inch Men" with Rob on drums: https://youtu.be/EBSlpojM4j0 Norco, CA WX: 50.7øF, 81.0% humidity, 0 mph ENE wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Android8675@1:103/705 to Fratm on Tue Feb 14 09:01:27 2023
    Re: SSH Logins on Synchronet BBS?
    By: Fratm to All on Mon Feb 13 2023 09:31 pm

    Was wondering what it takes to get ssh logins working on Synchronet BBS? I just set my system up and was hoping to get that working too. It doesn't seem to want to listen on the proper port, the sbbs.ini file shows it listed in the options, and I moved the systems shell ssh to a different port in hopes not to have a port conflict, but still nope answer on port 22.

    Which OS? did you try to do "ssh username@localhost" from the computer Synchronet is running on? Could be the port is blocked somewhere? router? firewall?

    For the most part SSH if the service is going should just work. More info needed. wiki.synchro.net look up ports or ssh.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fratm@1:103/705 to Digital Man on Tue Feb 14 09:43:42 2023
    Re: SSH Logins on Synchronet BBS?
    By: Digital Man to Fratm on Mon Feb 13 2023 23:52:38

    What is the terminal server log output reporting?

    Normally, nothing special is required to get ssh logins working with SBBS.

    Is this logged in syslog? (on debian, followed wiki install instructions), Also does it use the systems sshd or does it have its own?

    I am seeing this message in the syslog (/var/log/syslog)

    Feb 14 05:05:17 bbs systemd[1]: Stopping OpenBSD Secure Shell server...
    Feb 14 05:05:17 bbs systemd[1]: ssh.service: Succeeded.
    Feb 14 05:05:17 bbs systemd[1]: Stopped OpenBSD Secure Shell server.
    Feb 14 05:05:17 bbs systemd[1]: ssh.service: Consumed 33.903s CPU time.


    -Fratm

    ---
    þ Synchronet þ Retro Roster a retro computing hub.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fratm@1:103/705 to Android8675 on Tue Feb 14 10:41:42 2023
    Re: SSH Logins on Synchronet BBS?
    By: Android8675 to Fratm on Tue Feb 14 2023 09:01:27

    Which OS? did you try to do "ssh username@localhost" from the computer Synchronet is running on? Could be the port is blocked somewhere? router? firewall?

    For the most part SSH if the service is going should just work. More info needed. wiki.synchro.net look up ports or ssh.

    Ports are not blocked, verified that.. But, I am seeing this in the daemon log

    Feb 14 05:12:35 bbs sbbs[24235]: #015#015#015#015#015#0152/13 21:12:35 term SSH ERROR 'Couldn't import the session key used to protect the private key' (-22) getting private key from bbs_thread

    ---
    þ Synchronet þ Retro Roster a retro computing hub.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fratm@1:103/705 to Android8675 on Tue Feb 14 10:43:13 2023
    Re: SSH Logins on Synchronet BBS?
    By: Android8675 to Fratm on Tue Feb 14 2023 09:01:27

    Also, tried ssh username@localhost, got this:

    $ ssh fratm@localhost
    ssh: connect to host localhost port 22: Connection refused

    -F

    ---
    þ Synchronet þ Retro Roster a retro computing hub.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Fratm on Tue Feb 14 15:31:31 2023
    Re: SSH Logins on Synchronet BBS?
    By: Fratm to Digital Man on Tue Feb 14 2023 09:43 am

    Re: SSH Logins on Synchronet BBS?
    By: Digital Man to Fratm on Mon Feb 13 2023 23:52:38

    What is the terminal server log output reporting?

    Normally, nothing special is required to get ssh logins working with SBBS.

    Is this logged in syslog? (on debian, followed wiki install instructions),

    The terminal server log output either goes to the console (if you just run 'sbbs'), syslog (if you have things so configured), or systemd's journal.

    See http://wiki.synchro.net/monitor:index for details.

    Also does it use the systems sshd or does it have its own?

    Synchronet includes its own SSH server.

    I am seeing this message in the syslog (/var/log/syslog)

    Feb 14 05:05:17 bbs systemd[1]: Stopping OpenBSD Secure Shell server...
    Feb 14 05:05:17 bbs systemd[1]: ssh.service: Succeeded.
    Feb 14 05:05:17 bbs systemd[1]: Stopped OpenBSD Secure Shell server.
    Feb 14 05:05:17 bbs systemd[1]: ssh.service: Consumed 33.903s CPU time.

    Those msgs are not the related to the Synchronet terminal/SSH server.
    --
    digital man (rob)

    This Is Spinal Tap quote #3:
    How much more black could this be? and the answer is none. None more black. Norco, CA WX: 52.1øF, 69.0% humidity, 5 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Fratm on Tue Feb 14 15:32:13 2023
    Re: SSH Logins on Synchronet BBS?
    By: Fratm to Android8675 on Tue Feb 14 2023 10:41 am

    Re: SSH Logins on Synchronet BBS?
    By: Android8675 to Fratm on Tue Feb 14 2023 09:01:27

    Which OS? did you try to do "ssh username@localhost" from the computer Synchronet is running on? Could be the port is blocked somewhere? router? firewall?

    For the most part SSH if the service is going should just work. More info needed. wiki.synchro.net look up ports or ssh.

    Ports are not blocked, verified that.. But, I am seeing this in the daemon log

    Feb 14 05:12:35 bbs sbbs[24235]: #015#015#015#015#015#0152/13 21:12:35 term SSH ERROR 'Couldn't import the session key used to protect the private key' (-22) getting private key from bbs_thread

    Read: http://wiki.synchro.net/faq:tcpip#ssh_session_key
    --
    digital man (rob)

    Synchronet/BBS Terminology Definition #32:
    FREQ = File Request
    Norco, CA WX: 52.1øF, 69.0% humidity, 5 mph E wind, 0.00 inches rain/24hrs
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fratm@1:103/705 to Android8675 on Tue Feb 14 13:27:10 2023
    Re: SSH Logins on Synchronet BBS?
    By: Fratm to Android8675 on Tue Feb 14 2023 10:41:42

    Feb 14 05:12:35 bbs sbbs[24235]: #015#015#015#015#015#0152/13 21:12:35 term SSH ERROR 'Couldn't import the session key used to protect the private key' (-22) getting
    private key from bbs_thread

    I searched the above string on the wiki, and the issue is because I changed the system password, was an easy fix, just remove the old key and restart the terminal service, and magically it is all working now.

    Cheers,
    Fratm

    ---
    þ Synchronet þ Retro Roster a retro computing hub.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Digital Man@1:103/705 to Fratm on Tue Feb 14 17:09:03 2023
    Re: SSH Logins on Synchronet BBS?
    By: Fratm to Android8675 on Tue Feb 14 2023 01:27 pm

    Re: SSH Logins on Synchronet BBS?
    By: Fratm to Android8675 on Tue Feb 14 2023 10:41:42

    Feb 14 05:12:35 bbs sbbs[24235]: #015#015#015#015#015#0152/13 21:12:35 term SSH ERROR 'Couldn't import the session key used to protect the private key' (-22) getting private key from bbs_thread

    I searched the above string on the wiki, and the issue is because I changed the system password, was an easy fix, just remove the old key and restart the terminal service, and magically it is all working now.

    When you change the system password in SCFG, it should automatically force the key and certificate regeneration. Did you modify the system password in your ctrl/main.ini file directly (by hand)?
    --
    digital man (rob)

    Breaking Bad quote #13:
    I got twenty bucks that says he's a beaner. - Hank Schrader
    Norco, CA WX: 48.9øF, 84.0% humidity, 1 mph ENE wind, 0.00 inches rain/24hrs --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Fratm@1:103/705 to Digital Man on Wed Feb 15 12:03:36 2023
    Re: SSH Logins on Synchronet BBS?
    By: Digital Man to Fratm on Tue Feb 14 2023 17:09:03

    When you change the system password in SCFG, it should automatically force the key and certificate regeneration. Did you modify the system password in your
    ctrl/main.ini
    file directly (by hand)?

    Nope, only did it in SCFG. It's working now after restarting the service, so maybe the service didn't restart as expected from SCFG

    ---
    þ Synchronet þ Retro Roster a retro computing hub.
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)