YIO-Remote/remote-os

SSH keys can no longer be copied to remote due to read-only root file system

zehnm opened this issue · 0 comments

zehnm commented

Description

After introducing the read-only root file system, ssh keys can no longer be copied to the device with ssh-copy-id root@yio-remote.

How to Reproduce

Steps to reproduce the behavior:

  1. Generate your local SSH keys with ssh-keygen
  2. Copy your public key to the remote: ssh-copy-id root@yio-remote
  3. Enter root password at prompt
  4. See error: mkdir: can't create directory '.ssh': Read-only file system

Expected behavior

SSH keys can be copied to remote and are persisted in the data partition.

Your Environment

  • Version used: latest master
  • Running on:
    • YIO Remote
    • Standalone Raspberry Pi

Additional context

Error reason: there's no overlay for /root or bind-mount for /root/.ssh