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."
Code
Error #4000:
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
Stack trace:
#0 /usr/share/openmediavault/engined/rpc/config.inc(180): OMVModuleSsh->applyConfig()
#1 [internal function]: OMVRpcServiceConfig->applyChanges(Array, Array)
#2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#3 /usr/share/php/openmediavault/rpcservice.inc(158): OMVRpcServiceAbstract->callMethod('applyChanges', Array, Array)
#4 /usr/share/openmediavault/engined/rpc/config.inc(224): OMVRpcServiceAbstract->callMethodBg('applyChanges', Array, Array)
#5 [internal function]: OMVRpcServiceConfig->applyChangesBg(Array, Array)
#6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array)
#7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('applyChangesBg', Array, Array)
#8 /usr/sbin/omv-engined(500): OMVRpc::exec('Config', 'applyChangesBg', Array, Array, 1)
#9 {main}
Alles anzeigen
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?