Bug #4546

OpenNebula 5.0 - Bad SSH authorized key on Ubuntu

Added by EOLE Team about 5 years ago. Updated about 5 years ago.

Status:ClosedStart date:06/10/2016
Priority:NormalDue date:
Assignee:Javi Fontan% Done:

0%

Category:Packaging
Target version:Release 5.0
Resolution:fixed Pull request:
Affected Versions:Development

Description

Hello,

I just tried the OpenNebula 5.0 from `http://downloads.opennebula.org/repo/5.0/Ubuntu/16.04` and my `.ssh/authorized_keys` have wrong content:

oneadmin@xenial:~# cat authorized_keys 
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAytvsCKnsGrbFQDceW4yGzrDSrQedd+ccNA7LJJ+yeo8dUzFN
[...]
Cot5j14dxrMsRiht/SdNnlfrLsD4ojbs9Z8PmwnLlJuknttOKKHU
-----END RSA PRIVATE KEY-----

It looks like the authorized_keys key is populated with the private SSH key instead of the public key.

Regards.

History

#1 Updated by Ruben S. Montero about 5 years ago

  • Category set to Packaging
  • Target version set to Release 5.0

#2 Updated by Javi Fontan about 5 years ago

  • Status changed from Pending to Closed
  • Assignee set to Javi Fontan
  • Resolution set to fixed

You are right. Postinstall of deb packages added private key to authorized keys. This is now changed in package scripts.

Also available in: Atom PDF