| 1 | '''Store the key on sshfs share:'''[[BR]] |
| 2 | Install sftp on openwrt: |
| 3 | {{{ |
| 4 | ipkg install openssh-sftp-server |
| 5 | }}} |
| 6 | |
| 7 | mount the share: |
| 8 | {{{ |
| 9 | sshfs root@openwrt2:/mnt/nfs /mnt/tmp |
| 10 | }}} |
| 11 | |
| 12 | unmount the share: |
| 13 | {{{ |
| 14 | fusermount -u /mnt/tmp |
| 15 | }}} |
| 16 | |
| 17 | '''ssh login without password'''[[BR]] |
| 18 | Create keys: |
| 19 | {{{ |
| 20 | ssh-keygen -t rsa |
| 21 | }}} |
| 22 | use defaults to have key stored in /root/.ssh/id_rsa.pub[[BR]] |
| 23 | |
| 24 | copy key to destination host: |
| 25 | {{{ |
| 26 | cat /root/.ssh/id_rsa.pub | ssh root@openwrt2 'cat >> /etc/dropbear/authorized_keys' |
| 27 | ssh root@openwrt2 |
| 28 | chmod 0600 /etc/dropbear/authorized_keys |
| 29 | }}} |