AnsweredAssumed Answered

OpenSSH with Yocto for the LS1021A TWR Key Problem

Question asked by Stuart Rubin on Nov 21, 2017
Latest reply on Feb 5, 2018 by Yiping Wang

I am having trouble building and running OpenSSH with Yocto for the LS1021A TWR board. The bitbake process seems to run fine, and the board boots. When the OpenSSH initialization starts and the key is generated, the key file cannot be written.

Starting OpenBSD Secure Shell server: sshd generating ssh RSA key... EXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 34, inode_bitmap = 278530 Saving key "/etc/ssh/ssh_host_rsa_key" failed: Input/output error

 

It seems that /etc/ssh is mounted as read-only. For example:

root@ls1021atwr:/etc/ssh# touch file.txt
EXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 34, inode_bitmap = 278530
touch: file.txt: Input/output error

 

I've tried adding OpsnSSH In my recipe a few different ways:

IMAGE_INSTALL += "packagegroup-core-ssh-openssh"

--OR--

CORE_IMAGE_EXTRA_INSTALL += " openssh"

CORE_IMAGE_EXTRA_INSTALL += " openssh-sftp"

CORE_IMAGE_EXTRA_INSTALL += " openssh-sftp-server"

Any ideas on how to get the folder writeable? Any workaround?

 

Thanks!

Outcomes