Failed to execute command 'export LANG=C; omv-mkconf ssh 2>&1': uudecode failed.

    • OMV 2.x
    • Resolved
    • Failed to execute command 'export LANG=C; omv-mkconf ssh 2>&1': uudecode failed.

      I'm getting random SSH login attempts on random ports from China so I thought I should secure my server more. So I followed the guide here and keep getting an error (used PuttyGen method). I'm also going to be adding Fail2Ban or authfail too, but need to complete step 1 first lol.

      Trying to add my pub key to the user and get the error "Failed to execute command 'export LANG=C; omv-mkconf ssh 2>&1': uudecode failed."

      Source Code

      1. Error #4000:
      2. exception 'OMVException' with message 'Failed to execute command 'export LANG=C; omv-mkconf ssh 2>&1': uudecode failed.' in /usr/share/openmediavault/engined/module/ssh.inc:43
      3. Stack trace:
      4. #0 /usr/share/openmediavault/engined/rpc/config.inc(180): OMVModuleSsh->applyConfig()
      5. #1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
      6. #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      7. #3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
      8. #4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
      9. #5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
      10. #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
      11. #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
      12. #8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
      13. #9 {main}
      Display All


      Side note question, what user groups should my main user be a part of? I have it added to users & ssh atm. Should I add it to any other groups?
      [Blocked Image: http://i1249.photobucket.com/albums/hh516/da-pharoah/Modpic.gif]

      Asus Eee PC 1005PE
      Processor:
      Intel(R) Atom(TM) CPU N450 @ 1.66GHz
      Memory:
      1GB RAM
      Kernel:
      Linux 2.6.32-5-amd64
      Version: 2.0.7 (Stone burner)

      [Blocked Image: http://trakt.tv/user/hakarune/widgets/watched/all-banner.jpg]
    • The HowTo is outdated. Starting with 2.0.6 (sourceforge.net/p/openmediavau…diavault/debian/changelog) the public SSH key must be specified in the RFC 4716 SSH public key file format.
      The textfield explicitely notifies about this.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit
    • @votdev okay, thanks. Didn't see that. Extra question, Can I add 2 public keys to a user through the WebGUI?
      [Blocked Image: http://i1249.photobucket.com/albums/hh516/da-pharoah/Modpic.gif]

      Asus Eee PC 1005PE
      Processor:
      Intel(R) Atom(TM) CPU N450 @ 1.66GHz
      Memory:
      1GB RAM
      Kernel:
      Linux 2.6.32-5-amd64
      Version: 2.0.7 (Stone burner)

      [Blocked Image: http://trakt.tv/user/hakarune/widgets/watched/all-banner.jpg]
    • No, this is not supported.
      Absolutely no support through PM!

      I must not fear.
      Fear is the mind-killer.
      Fear is the little-death that brings total obliteration.
      I will face my fear.
      I will permit it to pass over me and through me.
      And when it has gone past I will turn the inner eye to see its path.
      Where the fear has gone there will be nothing.
      Only I will remain.

      Litany against fear by Bene Gesserit