So I've just updated my 86U to 384.13 and rebuilt my AiMesh using it as my master (previously had an RT-AC5300 running stock Asus in AP mode for AiMesh master).
I noted that the nodes were no longer allowing me to log in via SSH (key auth).
Upon further investigation, I noted that the 3 keys I have added via the GUI on the router are being sync'd to the nvram variable sshd_authkeys on the nodes just fine (I enabled password login to gain access).
So then I checked the /root/.ssh/authorised_keys file and found that the '>' delimiter used in the nvram variable is not being translated to '\n' (i.e. new line) in the file - hence key auth SSH login fails.
So then I discover that the JFFS partition has x attributes stripped and the .asusrouter script is thus disabled (whole other stupidity from Asus in the latest f/w), so I can't even run this automatically on boot of the node;
So I'm assuming the '>' delimiter is new/different in Merlin compared to Stock? @RMerlin ?
Previously the stock AP was syncing multiple keys to nodes OK so guessing there is a difference or very recent change I've not noticed until just now.
Any suggestions how to get around this other than plug a USB in and use the script_usbumount nvram variable trick? I really don't want to need USB's in all my nodes just for that!
I found this very recent post of someone having a similar issue and I wonder if Asus broke this, in which case, would migrating all my nodes to Merlin fix it?
https://github.com/RMerl/asuswrt-merlin.ng/issues/156#issuecomment-508906406
I noted that the nodes were no longer allowing me to log in via SSH (key auth).
Upon further investigation, I noted that the 3 keys I have added via the GUI on the router are being sync'd to the nvram variable sshd_authkeys on the nodes just fine (I enabled password login to gain access).
So then I checked the /root/.ssh/authorised_keys file and found that the '>' delimiter used in the nvram variable is not being translated to '\n' (i.e. new line) in the file - hence key auth SSH login fails.
So then I discover that the JFFS partition has x attributes stripped and the .asusrouter script is thus disabled (whole other stupidity from Asus in the latest f/w), so I can't even run this automatically on boot of the node;
Code:
nvram get sshd_authkeys | sed 's/>/\n/g' > /root/.ssh/authorized_keys
So I'm assuming the '>' delimiter is new/different in Merlin compared to Stock? @RMerlin ?
Previously the stock AP was syncing multiple keys to nodes OK so guessing there is a difference or very recent change I've not noticed until just now.
Any suggestions how to get around this other than plug a USB in and use the script_usbumount nvram variable trick? I really don't want to need USB's in all my nodes just for that!
I found this very recent post of someone having a similar issue and I wonder if Asus broke this, in which case, would migrating all my nodes to Merlin fix it?
https://github.com/RMerl/asuswrt-merlin.ng/issues/156#issuecomment-508906406