SOLVED – Possible bug in openssh-server (with workaround)

Forum Forums Official Releases antiX-23 “Arditi del Popolo SOLVED – Possible bug in openssh-server (with workaround)

  • This topic has 3 replies, 3 voices, and was last updated Jun 20-10:23 am by Lubo.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #145869
    Member
    Lubo

      I recently updated several PC to:
      AntiX 23.1 Base with runit.
      For the most part things work well, but I ran into the following:

      I frequently install ssh server software (usually openssh-server).

      The package currently in the repos installs fine, but fails to connect repeatedly!
      All the systems in questions have no network problems, I can ping any system from any other, they are all connected through a home router that works, and not one packet is dropped or even delayed much.

      Also, nmap reports port 22 is open on all.

      Despite all this, openssh fails to connect! See debugging output below:

      $ ssh -vvv 192.168.1.38
      OpenSSH_9.2p1 Debian-2.0nosystemd1, OpenSSL 3.0.11 19 Sep 2023
      debug1: Reading configuration data /etc/ssh/ssh_config
      debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
      debug1: /etc/ssh/ssh_config line 21: Applying options for *
      debug2: resolve_canonicalize: hostname 192.168.1.38 is address
      debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/home/lubod/.ssh/known_hosts'
      debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/home/lubod/.ssh/known_hosts2'
      debug3: ssh_connect_direct: entering
      debug1: Connecting to 192.168.1.38 [192.168.1.38] port 22.
      debug3: set_sock_tos: set socket 3 IP_TOS 0x10
      debug1: Connection established.
      debug1: identity file /home/lubod/.ssh/id_rsa type -1
      debug1: identity file /home/lubod/.ssh/id_rsa-cert type -1
      debug1: identity file /home/lubod/.ssh/id_ecdsa type -1
      debug1: identity file /home/lubod/.ssh/id_ecdsa-cert type -1
      debug1: identity file /home/lubod/.ssh/id_ecdsa_sk type -1
      debug1: identity file /home/lubod/.ssh/id_ecdsa_sk-cert type -1
      debug1: identity file /home/lubod/.ssh/id_ed25519 type -1
      debug1: identity file /home/lubod/.ssh/id_ed25519-cert type -1
      debug1: identity file /home/lubod/.ssh/id_ed25519_sk type -1
      debug1: identity file /home/lubod/.ssh/id_ed25519_sk-cert type -1
      debug1: identity file /home/lubod/.ssh/id_xmss type -1
      debug1: identity file /home/lubod/.ssh/id_xmss-cert type -1
      debug1: identity file /home/lubod/.ssh/id_dsa type -1
      debug1: identity file /home/lubod/.ssh/id_dsa-cert type -1
      debug1: Local version string SSH-2.0-OpenSSH_9.2p1 Debian-2.0nosystemd1

      And then it just hangs. If you leave it long enough it times out, but never connects, no matter how slow.

      My temporary workaround: remove openssh-server and install dropbear. Connects first time and every time. On the same router, network, PCs, OS, etc.
      It would seem either the antiX openssh-server, or the upstream Debian, is bugged. Willing to provide further logs, but may have to reinstall openssh-server to do so.

      sudo apt purge -y openssh-server openssh-sftp-server && sudo apt install -y dropbear

      Thanks.

      • This topic was modified 1 month ago by Lubo. Reason: Added command to remove openssh and install dropbear
      • This topic was modified 1 month ago by Lubo. Reason: Problem seems to have been resolved by reinstalling

      Mr. Lubo Diakov
      email: zr90004@gmail.com

      #145897
      Member
      Robin

        Have you made sure to set the ssh server daemon enabled in antiX control centre, section System, Startup Services, → Button Add service, “ssh” ? Otherwise it won’t run and wouldn’t accept any connections…

        Windows is like a submarine. Open a window and serious problems will start.

        #145903
        Member
        zblsv

          And then it just hangs.

          What about the logs at server side?

          Words are carried away by the wind...

          #146081
          Member
          Lubo

            Thank you to anyone who read/responded.

            This may have been some kind of one time fluke, that resolved itself upon re-installation.

            Right now openssh-server (and openssh-sftp-server) seem to be working correctly.

            Though I do not recall any error messages during prior install.

            Mr. Lubo Diakov
            email: zr90004@gmail.com

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.