I have modified my sbbs.ini to try and get it to start ssh on 2222 instead of 22. I'm running on Linux os so have my sshd already running on 22. I would prefer to keep it that way.
I've tried setting the interface for ssh to the IP:Port also, and still doesn't seem to start.
I've set logging to Debug, but I don't think it is starting at all.
Any suggestions?
Re: SSH not starting on non-standard port 2222term 0005 !ERROR 13 binding SSH Server socket to port 22: Permission denied term 0005 !ERROR 13 binding SSH Server socket: Permission denied [sbbs@vmi1943160 data]$
22. I would prefer to keep it that way.
I've tried setting the interface for ssh to the IP:Port also, and still doesn't seem to start.
I've set logging to Debug, but I don't think it is starting at all.
What do your terminal server log report?
Any suggestions?
Check the log output.
Re: SSH not starting on non-standard port 2222
By: Amessyroom to All on Sat Jun 22 2024 06:42 pm
sbbs@vmi1943160 data]$ grep -i ssh error.log
term 0005 !ERROR 13 binding SSH Server socket to port 22: Permission denied term 0005 !ERROR 13 binding SSH Server socket: Permission denied [sbbs@vmi1943160 data]$ grep -i ssh ../ctrl/sbbs.ini
[BBS] Terminal (Telnet, SSH, RLogin, Raw-TCP) Server
SSHInterface =
;SSHErrorLevel = Warning
SSHErrorLevel = Debugging
; TCP port for Secure Shell (SSH) server:
SSHPort = 2424
SSHConnectTimeout = 10s
; ALLOW_SSH
; SSH_ANYAUTH
Options = XTRN_MINIMIZED| ALLOW_SSH | ALLOW_SFTP
Changed port to 2424, rebooted server, restarted SBBS and it is trying to bind to port 22; which the OS is using.
Why is it ignorning the requested port of 2424
Re: SSH not starting on non-standard port 2222
By: Digital Man to Amessyroom on Sat Jun 22 2024 08:50 pm
Re: SSH not starting on non-standard port 2222
22. I would prefer to keep it that way.
I've tried setting the interface for ssh to the IP:Port also, and still doesn't seem to start.
I've set logging to Debug, but I don't think it is starting at all.
What do your terminal server log report?
Any suggestions?
Check the log output.term 0005 !ERROR 13 binding SSH Server socket to port 22: Permission denied term 0005 !ERROR 13 binding SSH Server socket: Permission denied [sbbs@vmi1943160 data]$
I have changed OS ssh to non 22 port. I've reran setcap and confirmed it has ability to point to privilege ports.
I have setup netcat on port 22, and connected to it. So other port can be used.
Maybe and OS issue. I have specified the IP in SSHInterface. Don't understand why it cannot bind and use 22, now that I've released it.
Re: SSH not starting on non-standard port 2222
I've tried setting the interface for ssh to the IP:Port also, and
still doesn't seem to start.
Denn wrote to Amessyroom <=-
Re: SSH not starting on non-standard port 2222
By: Amessyroom to Digital Man on Sun Jun 23 2024 09:33 am
Re: SSH not starting on non-standard port 2222
I've tried setting the interface for ssh to the IP:Port also, and
still doesn't seem to start.
Could it be a firewall port not opened problem?
just a thought.
Re: SSH not starting on non-standard port 2222
By: Amessyroom to Digital Man on Sun Jun 23 2024 09:33 am
Re: SSH not starting on non-standard port 2222
By: Amessyroom to Digital Man on Sun Jun 23 2024 02:49 pm
Re: SSH not starting on non-standard port 2222
By: Amessyroom to Digital Man on Sun Jun 23 2024 09:33 am
Figured it out.
sbbs generated a key when first started on the 17th, and left it , although it was never successful in starting the daemon
I did not see this on console until, I turned off all other terminal services except ssh
sbbs core dumped
6/23 16:19:19 term SSH ERROR 'Couldn't import the session key used to protect the private key: Couldn't unwrap encrypted key' (-22) getting private key from bbs_thread
[Threads: 8 Sockets: 19 Clients: 0 Served: 0 Errors: 20] (?=Help): Segmentation fault (core dumped)
[sbbs@vmi1943160 ctrl]$ find $HOME -name \*.key -print /home/sbbs/ctrl/cryptlib.key
[sbbs@vmi1943160 ctrl]$ ls -l cryptlib.key
-rw------- 1 sbbs sbbs 1289 Jun 17 20:37 cryptlib.key
[sbbs@vmi1943160 ctrl]$ date
Sun Jun 23 04:39:49 PM EDT 2024
Removing cryptlib.key fixed issue. Thanks to the documentation mentioning, this key elsewhere (when SY password is changed), I figured that is where problem was in this case.
Is the console log written anywhere?
I read in the wiki that running in daemon mode isn't recommended?
But in daemon mode , I expect the console
will be written
to syslog local3.
But then ...
Telnet server started failing. I'm just sticking with telnet.
When using ssh I had issues with syncterm 1.1b with activating session. 50/50 it would work, and then I could get logged in.
At least, I know the source of the problem. Thanks for listening to my debugging
Sysop: | Fercho |
---|---|
Lugar: | La Plata, Buenos Aires |
Usuarios: | 33 |
Nodos: | 10 (0 / 10) |
Uptime: | 33:33:14 |
Llamadas: | 118 |
Archivoss: | 15,607 |
Mensajes: | 33,523 |