Bug 8814

Summary: Invalid format ssh keys
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Lucian Musat <georgex.l.musat>
Component: configurationAssignee: Alexandru Roman <alexandru.costinx.roman>
Status: VERIFIED WORKSFORME QA Contact: Alexandru Roman <alexandru.costinx.roman>
Severity: normal    
Priority: Medium    
Version: unspecified   
Target Milestone: 2.1 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: Regression (Used to work)
Verified: Documentation change: No (bug/feature does not impact docs)

Description Lucian Musat 2015-12-16 10:06:25 UTC
Built a qemux86-64 on the master from a couple of days ago (b3d6872bf169a13e572638e3809c50a868246616) and observed that the ssh wasn't working because it could not load the keys at start-up apparently because of an invalid format.

EXT4-fs (vda): re-mounted. Opts: (null)
random: dd urandom read with 62 bits of entropy available
Populating dev cache
ALSA: Restoring mixer settings...
/usr/sbin/alsactl: load_state:1735: No soundcards found...
INIT: Entering runlevel: 5
Configuring network interfaces... done.
Starting system message bus: dbus.
Starting Connection Manager
Starting OpenBSD Secure Shell server: sshd
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_rsa_key
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_dsa_key
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_ecdsa_key
key_load_public: invalid format
Could not load host key: /etc/ssh/ssh_host_ed25519_key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
Starting Xserver
Starting rpcbind daemon...
Comment 1 Ross Burton 2015-12-17 15:53:07 UTC
I don't suppose you still have this image?
Comment 2 Ross Burton 2016-02-11 14:45:07 UTC
This is odd and I've not seen it before.  Did this happen again or was this a one-time failure?
Comment 3 Stephen K Jolley 2016-02-16 17:30:59 UTC
I a pulling this out of NEEDINFO since Lucian's e-mail address is no longer valid.  Ross, if you still need information, put it back into NEEDINFO and assign it to someone who might answer.
Comment 4 Ross Burton 2016-02-16 17:32:46 UTC
Reassigning to Alex :)
Comment 5 Alexandru Roman 2016-02-23 07:58:05 UTC
Tested on master: 152914f2983c5d69001de1d46ce99547fa1e75fe
Can't reproduce anymore.
Comment 6 Alexandru Roman 2016-02-23 15:03:18 UTC
Due my last comment put this on resolved worksforme
Comment 7 Alexandru Roman 2016-02-29 13:28:52 UTC
Verified.