Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to confirm the SSH key relationship between netopeer2 and ODL through callhome connection #1656

Open
trackoftime opened this issue Oct 23, 2024 · 2 comments
Labels
is:question Issue is actually a question.

Comments

@trackoftime
Copy link

trackoftime commented Oct 23, 2024

Hi,
On ARM devices are manually generated through merge_hostkey.sh

<keystore xmlns="urn:ietf:params:xml:ns:yang:ietf-keystore">
  <asymmetric-keys>
    <asymmetric-key>
      <name>genkey</name>
      <algorithm>rsa2048</algorithm>
      <public-key>MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqe/41upVrHJFMACaDnfG2ZnMcNNwYoR0O4qJ3dTtl+OWkx3dR12X6D4TbooCRRK6LkKMB1fkN+JCwHOx5HtlCzZNovU6vAQTk0lJU80fbQnoSxJPMtpVzhJvVwD/2QiG9H/pXFMdCfhiH0LhxoI3/8sB80n5/YBaSjtlt3K8MvvfGyrRYm4xUfY1Jg/iq+2mbk0locJ6SvT4svRuevqB7MGJu9XRN29CsgHztibl19VweWyV+GzM3s9+zpXS7yupltknj42SVBOo1fDK592kypS4tyJG56PcAaSnAU89XGCNjG0ybwkjAorLsKEaZS5C3GgGsbRUXDFUFtz4gZPruwIDAQAB</public-key>
      <private-key>MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCp7/jW6lWsckUwAJoOd8bZmcxw03BihHQ7iond1O2X45aTHd1HXZfoPhNuigJFErouQowHV+Q34kLAc7Hke2ULNk2i9Tq8BBOTSUlTzR9tCehLEk8y2lXOEm9XAP/ZCIb0f+lcUx0J+GIfQuHGgjf/ywHzSfn9gFpKO2W3crwy+98bKtFibjFR9jUmD+Kr7aZuTSWhwnpK9Piy9G56+oHswYm71dE3b0KyAfO2JuXX1XB5bJX4bMzez37OldLvK6mW2SePjZJU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7vJujym2pP0TlYxpDfLYlU1SNqDHY+aALUz4MCgYBgS7dZ6HymA+Z1rD6F80DRXgWCl1qZo6B8e/jYXaRRLdal4hkEke9ZY8rFMOgp3b4Wm+4YkveQJ17E7X3vZHxq6uNJkgX1XW+1nRyCkuVViWCF0JeMbiy8atAtMyVK+wVmWGFbsh+mxLZZvMzx1d6iHPlBKjkm7yztIpObO4G4ZA==</private-key>
    </asymmetric-key>
  </asymmetric-keys>
</keystore>

What was found by ODL query

      "ssh-host-key": "AAAAB3NzaC1yc2EAAAADAQABAAABAQCp7/jW6lWsckUwAJoOd8bZmcxw03BihHQ7iond1O2X45aTHd1HXZfoPhNuigJFErouQowHV+Q34kLAc7Hke2ULNk2i9Tq8BBOTSUlTzR9tCehLEk8y2lXOEm9XAP/ZCIb0f+lcUx0J+GIfQuHGgjf/ywHzSfn9gFpKO2W3crwy+98bKtFibjFR9jUmD+Kr7aZuTSWhwnpK9Piy9G56+oHswYm71dE3b0KyAfO2JuXX1XB5bJX4bMzez37OldLvK6mW2SePjZJUE6jV8Mrn3aTKlLi3Ikbno9wBpKcBTz1cYI2MbTJvCSMCisuwoRplLkLcaAaxtFRcMVQW3PiBk+u7"

What is the relationship between the two and how to convert them?

@michalvasko
Copy link
Member

This is a generic SSH question not directly related to our projects so you can find this information if you search a bit. But fine, I will briefly help you. The format in the XML is generally known as PEM while the second format seems like the OpenSSH public key format. You should be able to convert them using OpenSSL or OpenSSH tools.

@michalvasko michalvasko added the is:question Issue is actually a question. label Oct 23, 2024
@trackoftime
Copy link
Author

Thank you very much, I'll give it a try。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
is:question Issue is actually a question.
Projects
None yet
Development

No branches or pull requests

2 participants