SSH to Lyra Mesh Node with ssh-key

  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

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?
 

RMerlin

Asuswrt-Merlin dev
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).
 

ligeza

Occasional Visitor
On ubuntu i use:
Bash:
mkdir .ssh
ssh-keygen -t rsa
Then login to lyra trio and using this commands:
Bash:
[email protected]:~# ssh [email protected]
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.
[email protected]'s password:
[email protected]_Trio-8260:/tmp/home/root# exit
Connection to 192.168.5.12 closed.
[email protected]:~# cat /root/.ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'
[email protected]'s password:
[email protected]:~# ssh [email protected]
[email protected]_Trio-8260:/tmp/home/root# exit
Connection to 192.168.5.12 closed.
[email protected]:~# ssh [email protected]
[email protected]_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:
[email protected]:~# ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa [email protected] cat /proc/dmu/temperature | cut -c19-20
Warning: Permanently added '192.168.5.10' (ECDSA) to the list of known hosts.
53
[email protected]:~#
 
Last edited:

corgan2224

Occasional Visitor
On ubuntu i use:
Bash:
mkdir .ssh
ssh-keygen -t rsa
Then login to lyra trio and using this commands:
Bash:
[email protected]:~# ssh [email protected]
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.
[email protected]'s password:
[email protected]_Trio-8260:/tmp/home/root# exit
Connection to 192.168.5.12 closed.
[email protected]:~# cat /root/.ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'
[email protected]'s password:
[email protected]:~# ssh [email protected]
[email protected]_Trio-8260:/tmp/home/root# exit
Connection to 192.168.5.12 closed.
[email protected]:~# ssh [email protected]
[email protected]_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:
[email protected]:~# ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -i /root/.ssh/id_rsa [email protected] cat /proc/dmu/temperature | cut -c19-20
Warning: Permanently added '192.168.5.10' (ECDSA) to the list of known hosts.
53
[email protected]:~#

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
 

corgan2224

Occasional Visitor
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?
 

corgan2224

Occasional Visitor
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.
 

RMerlin

Asuswrt-Merlin dev
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.
 

corgan2224

Occasional Visitor
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

Sign Up For SNBForums Daily Digest

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