I am struggling to import my SSH key to OMV under System -> Certificates -> SSH. I plan to use the SSH key for rsync access to a remote server (and not for an OMV login). When adding the private key i get an error saying
Code
privatekey: The value '-----BEGIN OPENSSH PRIVATE KEY-----
(key contents)
-----END OPENSSH PRIVATE KEY-----
' is not a SSH private key (RSA).
the error message is technically true because the key i am trying to import is indeed not an RSA SSH private key but an EdDSA one.
I see support for EdDSA private keys has been added in https://github.com/openmediavault/openmediavault/issues/1127. But what about private keys?
edit: i get the same error when trying to import an rsa key. some additional info from the error message:
Code
OMV\Json\SchemaValidationException: privatekey: The value '-----BEGIN OPENSSH PRIVATE KEY-----
(key contents)
-----END OPENSSH PRIVATE KEY-----' is not a SSH private key (RSA). in /usr/share/php/openmediavault/datamodel/schema.inc:83
Stack trace:
#0 /usr/share/php/openmediavault/json/schema.inc(377): OMV\DataModel\Schema->checkFormat('-----BEGIN OPEN...', Array, 'privatekey')
#1 /usr/share/php/openmediavault/json/schema.inc(301): OMV\Json\Schema->validateString('-----BEGIN OPEN...', Array, 'privatekey')
#2 /usr/share/php/openmediavault/json/schema.inc(631): OMV\Json\Schema->validateType('-----BEGIN OPEN...', Array, 'privatekey')
#3 /usr/share/php/openmediavault/json/schema.inc(399): OMV\Json\Schema->checkProperties(Object(stdClass), Array, '')
#4 /usr/share/php/openmediavault/json/schema.inc(289): OMV\Json\Schema->validateObject(Object(stdClass), Array, '')
#5 /usr/share/php/openmediavault/json/schema.inc(261): OMV\Json\Schema->validateType(Object(stdClass), Array, '')
#6 /usr/share/php/openmediavault/rpc/paramsvalidator.inc(59): OMV\Json\Schema->validate(Object(stdClass))
#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(179): OMV\Rpc\ParamsValidator->validate('{"uuid":"fa4b1c...')
#8 /usr/share/openmediavault/engined/rpc/certificatemgmt.inc(456): OMV\Rpc\ServiceAbstract->validateMethodParams(Array, 'rpc.certificate...')
#9 [internal function]: Engined\Rpc\CertificateMgmt->setSsh(Array, Array)
#10 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#11 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('setSsh', Array, Array)
#12 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('CertificateMgmt', 'setSsh', Array, Array, 1)
#13 {main}
Display More