SSH to Turris Mox that was network-booted

Hi,

is there a possibility to set a key to be able to connect to Turris Mox via SSH when using network boot via the Turris Omnia?

Regards

yes, there is. But it took a while to find this out :slight_smile:

copy your omnia /etc/shadow to
/srv/turris-netboot/rootfs/overlay/0000000D3000xxxx/etc/shadow
you need to change file owner to turris-netboot, otherwise the file will not work. After MOX reboot you can login to your mox using same password as to omnia.

I recommend than to copy content of MOX /etc/ssh to Omnia
/srv/turris-netboot/rootfs/overlay/0000000D3000xxxx/etc/ssh/ssh_host_ed25519_key.pub
/srv/turris-netboot/rootfs/overlay/0000000D3000xxxx/etc/ssh/ssh_host_ed25519_key
/srv/turris-netboot/rootfs/overlay/0000000D3000xxxx/etc/ssh/ssh_host_ecdsa_key.pub
/srv/turris-netboot/rootfs/overlay/0000000D3000xxxx/etc/ssh/ssh_host_ecdsa_key
/srv/turris-netboot/rootfs/overlay/0000000D3000xxxx/etc/ssh/ssh_host_rsa_key.pub
/srv/turris-netboot/rootfs/overlay/0000000D3000xxxx/etc/ssh/ssh_host_rsa_key
/srv/turris-netboot/rootfs/overlay/0000000D3000xxxx/etc/ssh/ssh_config
/srv/turris-netboot/rootfs/overlay/0000000D3000xxxx/etc/ssh/sshd_config
/srv/turris-netboot/rootfs/overlay/0000000D3000xxxx/etc/ssh/moduli

than it has same key after every reboot.

Hi,

Sorry for responding to your question late, but during the time, we have prepared an article in our documentation for Netboot and you can check it if there is an answer what you are looking for.

1 Like