Muwahhid Posted March 11, 2021 Share Posted March 11, 2021 Здравствуйте. Пытаюсь обменяться ключами, для ssh. ssh-copy-id root@192.168.1.1 /usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/root/.ssh/id_rsa_borg.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys root@192.168.1.1's password: mkdir: can't create directory '/etc/dropbear': Read-only file system Вот такую ошибку получаю. Подскажите, как это исправить? Quote Link to comment Share on other sites More sharing options...
rustrict Posted March 11, 2021 Share Posted March 11, 2021 В коде ssh-copy-id для authorized_keys dropbear жестко задан каталог /etc/dropbear, недоступный для записи из OPKG. Переносите так: cat /root/.ssh/id_rsa_borg.pub | ssh root@192.168.1.1 "cat >> /opt/etc/dropbear/authorized_keys && chmod 600 /opt/etc/dropbear/authorized_keys" 3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.