Error adding a ssh key via web gui

  • Code
    OMV
    Release: 6.0.44-1
    Codename: Shaitan

    If I try to add a ssh key for a user via the web gui I get this error


    and the key is not installed.

  • I have similar issues with adding a https certificate.

    It appears as a recurring failure message when I save the settings.


    Since then I decided to do 95% of everything via the terminal.

    Comes in handy as then I don't need to switch off/on the VPN of the browser every time I'm doing a LAN access.


    Sorry, no solution, just a workaround.

  • Can not reproduce the problem. How does the SSH pub key looks like?

    Something like this

    Code
    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDI4e71WtyHgR39kau7IatCvx6hgvfD4epxhT/2GHGREACNMLOUYpeaQhae4494UyMqhdfthadvAapOscgJ6iNOk4nLTCRu/ltvw4ALT50iKIe3WhNo/cf5poWKxBsBjTGDgt5NA05mNRBQAdwbn96kQmtLwvkqLCtpJTxogSXbzVxw5hGR9PD01WlgPKJhN29CPcC5o2jA8edRgi7zeLPbWcB9iB+nw076N6OZaGr5a6T9eTFz5aq4ImSZzNm9CRtYazPV3aKK0BB59GT/kYTTt1mUFKeDhye2M3OWLc+Zb8zaGwFtHGYIxnnMjugqzBLB5oqfMx58ORIj2y7Zhuuhpfs9Xg/hnw6kr6mo35+ZbU/7qRcpK1vIhRK3vMs/riPgbar/JKODy0IO2j7tcXl5ZVkuZYrh43CC90wg0U3rnS14avKCNdVijLcIBSCDQkfAApu9eKJH7buMTFxQ4WfRDBMTfCqwCUyzDTNeFzDiiEb0WtaOTJxJvmmUrAFuIelE=

    The web gui takes it normally

    • Official Post

    Something like this

    Code
    ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDI4e71WtyHgR39kau7IatCvx6hgvfD4epxhT/2GHGREACNMLOUYpeaQhae4494UyMqhdfthadvAapOscgJ6iNOk4nLTCRu/ltvw4ALT50iKIe3WhNo/cf5poWKxBsBjTGDgt5NA05mNRBQAdwbn96kQmtLwvkqLCtpJTxogSXbzVxw5hGR9PD01WlgPKJhN29CPcC5o2jA8edRgi7zeLPbWcB9iB+nw076N6OZaGr5a6T9eTFz5aq4ImSZzNm9CRtYazPV3aKK0BB59GT/kYTTt1mUFKeDhye2M3OWLc+Zb8zaGwFtHGYIxnnMjugqzBLB5oqfMx58ORIj2y7Zhuuhpfs9Xg/hnw6kr6mo35+ZbU/7qRcpK1vIhRK3vMs/riPgbar/JKODy0IO2j7tcXl5ZVkuZYrh43CC90wg0U3rnS14avKCNdVijLcIBSCDQkfAApu9eKJH7buMTFxQ4WfRDBMTfCqwCUyzDTNeFzDiiEb0WtaOTJxJvmmUrAFuIelE=

    The web gui takes it normally

    The pub key is erroneus somehow. I can not process it on latest Ubuntu as well.


    Code
    $ ssh-keygen -e -m RFC4716 -f test.pub
    Load key "test.pub": error in libcrypto
    
    $ ssh-keygen -l -f test.pub
    test.pub is not a public key file.
  • The pub key is erroneus somehow. I can not process it on latest Ubuntu as well.


    Code
    $ ssh-keygen -e -m RFC4716 -f test.pub
    Load key "test.pub": error in libcrypto
    
    $ ssh-keygen -l -f test.pub
    test.pub is not a public key file.

    The key was actually changed in little parts because I did not want to put the real one in this forum for the ethernity :)

  • votdev

    Added the Label OMV 6.x
  • Hello,

    I added my SSH key by pasting it in /root/.ssh/authorized_keys with vi editor. This worked for me.

    Ok, to be hones, I'm new to OMV and I didn't know, that there's GUI option to do this.

    Regards,

    Thomas

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!