What's new

SSH to Lyra Mesh Node with ssh-key

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

corgan2224

Occasional Visitor
To get some Mesh/Wifi Infos from the Nodes, i need to get some scripts running on the Lyra Nodes. I tried now for some hours to get it working with copying the ssh-key over, added it by hand, with some scripts and with the gui.
I can't login to the node without typing in the login password.
Does anyone has a TIPP how to automate a bash script on a mesh node, or how to automatically login?
 
AiMesh SSH key sharing is currently broken on my firmware because Asus and I store the keys in a different format (I do so to allow users to define multiple keys).
 
On ubuntu i use:
Bash:
mkdir .ssh
ssh-keygen -t rsa
Then login to lyra trio and using this commands:
Bash:
root@HomeAssistant:~# ssh Rafal@192.168.5.12
The authenticity of host '192.168.5.12 (192.168.5.12)' can't be established.
ECDSA key fingerprint is SHA256:nIRVtTjNGQ3pcxEiV+edJeeelShVR/KX87JdalftitA.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.5.12' (ECDSA) to the list of known hosts.
Rafal@192.168.5.12's password:
Rafal@Lyra_Trio-8260:/tmp/home/root# exit
Connection to 192.168.5.12 closed.
root@HomeAssistant:~# cat /root/.ssh/id_rsa.pub | ssh Rafal@192.168.5.12 'cat >> .ssh/authorized_keys'
Rafal@192.168.5.12's password:
root@HomeAssistant:~# ssh Rafal@192.168.5.12
Rafal@Lyra_Trio-8260:/tmp/home/root# exit
Connection to 192.168.5.12 closed.
root@HomeAssistant:~# ssh Rafal@192.168.5.12
Rafal@Lyra_Trio-8260:/tmp/home/root#
As you can see in last lines I don't have to confirm with password. Lyra trio 9.0.0.4.386_41615-g7c2264e
I was useing it on ac86u and ac68u with Merlin firmware to get the temperature:
Bash:
root@HomeAssistant:~# ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa Rafal@192.168.5.10 cat /proc/dmu/temperature | cut -c19-20
Warning: Permanently added '192.168.5.10' (ECDSA) to the list of known hosts.
53
root@HomeAssistant:~#
 
Last edited:
On ubuntu i use:
Bash:
mkdir .ssh
ssh-keygen -t rsa
Then login to lyra trio and using this commands:
Bash:
root@HomeAssistant:~# ssh Rafal@192.168.5.12
The authenticity of host '192.168.5.12 (192.168.5.12)' can't be established.
ECDSA key fingerprint is SHA256:nIRVtTjNGQ3pcxEiV+edJeeelShVR/KX87JdalftitA.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.5.12' (ECDSA) to the list of known hosts.
Rafal@192.168.5.12's password:
Rafal@Lyra_Trio-8260:/tmp/home/root# exit
Connection to 192.168.5.12 closed.
root@HomeAssistant:~# cat /root/.ssh/id_rsa.pub | ssh Rafal@192.168.5.12 'cat >> .ssh/authorized_keys'
Rafal@192.168.5.12's password:
root@HomeAssistant:~# ssh Rafal@192.168.5.12
Rafal@Lyra_Trio-8260:/tmp/home/root# exit
Connection to 192.168.5.12 closed.
root@HomeAssistant:~# ssh Rafal@192.168.5.12
Rafal@Lyra_Trio-8260:/tmp/home/root#
As you can see in last lines I don't have to confirm with password. Lyra trio 9.0.0.4.386_41615-g7c2264e
I was useing it on ac86u and ac68u with Merlin firmware to get the temperature:
Bash:
root@HomeAssistant:~# ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa Rafal@192.168.5.10 cat /proc/dmu/temperature | cut -c19-20
Warning: Permanently added '192.168.5.10' (ECDSA) to the list of known hosts.
53
root@HomeAssistant:~#

thanks for that! But this was exactly what i tryed.
I also cant add another user on the Lyra, seems that adduser is not on the busybox.

I think my Lyra and your Lyra Trio are different on the firmware. For me, the lyra firmware download website is broken with no content.

My Lyra Firmware; 3.0.0.4.384_46249-g97d05bb
Your Lyra Trio 9.0.0.4.384.46629
 
AiMesh SSH key sharing is currently broken on my firmware because Asus and I store the keys in a different format (I do so to allow users to define multiple keys).

any ideas how to fix or workaround this?
 
None at this time.

I tried to login to my Lyra node with 386.2 and 9.0.0.4.386_41615 on the node, but still can't login with the ssh key.
Do you have plans to fix this in some upcoming releases? Just asking, if its worth waiting or to find a workaround.
 
I tried to login to my Lyra node with 386.2 and 9.0.0.4.386_41615 on the node, but still can't login with the ssh key.
Do you have plans to fix this in some upcoming releases? Just asking, if its worth waiting or to find a workaround.
No, because the only way to fix this would be to drop support for multiple SSH keys, which would break any router already configured with that.
 
No, because the only way to fix this would be to drop support for multiple SSH keys, which would break any router already configured with that.

Thanks for the info.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!

Staff online

Top