Cannot start SSH service

    • OMV 4.x

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Cannot start SSH service

      New

      Out of the blue the SSH service stopped functioning and I'm at a loss. After I enable the service and click apply I get the errors shown in the attachment. I also can longer Remote into the server using RDP and I also cannot access Deluge through the web browser. Not sure if those issues are being caused by by SSH issue or not. Any help that can be provided would be greatly appreciated.
      Files
      • OMV_Errors.txt

        (2.19 kB, downloaded 10 times, last: )
    • New

      I don't have the output handy for the journalctl -xe because my server isn't easy to get to but I do have the output from the system log. If you absolutely need the other output then I will get it for you.

      May 16 11:24:17 nas systemd[1]: ssh.service: Start operation timed out. Terminating.
      May 16 11:24:17 nas systemd[1]: Failed to start OpenBSD Secure Shell server.
      May 16 11:24:17 nas systemd[1]: ssh.service: Unit entered failed state.
      May 16 11:24:17 nas systemd[1]: ssh.service: Failed with result 'timeout'.
      May 16 11:24:17 nas systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      May 16 11:24:17 nas systemd[1]: Stopped OpenBSD Secure Shell server.
      May 16 11:24:17 nas systemd[1]: Starting OpenBSD Secure Shell server...
      May 16 11:24:17 nas sshd[16979]: /etc/ssh/sshd_config line 23: Unsupported option UsePAM
      May 16 11:24:17 nas sshd[16979]: Could not load host key: /etc/ssh/ssh_host_ed25519_key
      May 16 11:24:17 nas sshd[16981]: /etc/ssh/sshd_config line 23: Unsupported option UsePAM

      May 16 11:24:17 nas sshd[16981]: Could not load host key: /etc/ssh/ssh_host_ed25519_key
    • New

      How did you install OMV? It is failing because it doesn't like the UsePAM option but that is a valid option.
      omv 4.1.22 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • New

      I installed OMV over a year ago and I'm guessing that I installed the ISO with a bootable USB drive. And yesterday when I had the server pulled out and hooked up to a monitor I commented out the "UsePAM" option but I still had the "Could not load host key" error and at that point I was out of ideas.
    • New

      The only other way I can think of right now is to pull the sysdrive and chroot into it on another system where you mount it.
      ssh-keygen is an easy option to generate keys.
      But first look if the old one is still around and look for owner and rights. In the ssh config file should be a line with keyfile or something similar. The path is defined by this parameter.
    • New

      I recreated the key using ssh-keygen and I gave it the same name as the existing key. After I did that I continued to receive the "PAM" error so I commented that out and now I'm left with this:

      May 17 09:06:58 nas systemd[1]: ssh.service: Start operation timed out. Terminating.
      May 17 09:06:58 nas systemd[1]: Failed to start OpenBSD Secure Shell server.
      May 17 09:06:58 nas systemd[1]: ssh.service: Unit entered failed state.
      May 17 09:06:58 nas systemd[1]: ssh.service: Failed with result 'timeout'.
      May 17 09:06:58 nas systemd[1]: ssh.service: Service hold-off time over, scheduling restart.
      May 17 09:06:58 nas systemd[1]: Stopped OpenBSD Secure Shell server.
      May 17 09:06:58 nas systemd[1]: Starting OpenBSD Secure Shell server...
    • New

      The problem you avoiding is that UsePAM is a valid option and will be added back every time you make an ssh change in the web interface. What is the output of: dpkg -l | grep ssh
      omv 4.1.22 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • New

      I don't see anything wrong there either. Do you have ldap or AD enabled?
      omv 4.1.22 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!
    • New

      No, neither ldap nor AD are enabled. How about some tips on how to reinstall OMV without losing stuff such as Docker configurations, my SQL database, VPN settings. Basically all of the stuff that took me hours and hours of research to configure but now I can't remember how I did it all.
    • New

      fkafl wrote:

      How about some tips on how to reinstall OMV without losing stuff such as Docker configurations, my SQL database, VPN settings.
      There is no way to do it. You can look at /etc/openmediavault/config.xml for reference.
      omv 4.1.22 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.15
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!