cancel
Showing results for 
Search instead for 
Did you mean: 

GT-AX11000 (fw: 3.0.0.4.384_8011) ssh pub keys gone after reboot

devnulldump
Level 7
I added 3 ssh pub keys on the UI as shown below...

In web UI under Administration/System/Authorized Keys


ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAvGze5SVRGLbAk2ZPIBg ...
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDIUWiLXe4oIQ5MFqH ...
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD6EigjJFrLo+SiCkS ...


After applying the change in UI, I verified that all keys are saved in nvram by logging into the router via ssh and doing the following


# the following shows correctly after entered in UI
nvram get sshd_authkeys



After reboot, only the first key survives but I would like all 3 keys to be saved.
1,463 Views
1 REPLY 1

devnulldump
Level 7
If anyone requires more than one ssh key like I do, I have created a workaround for this bug at the link below until the ASUS has a fix.

Just change usb device /dev/sda1 to match yours and your ssh keys of course and delete USB mount portion if you are only interested in ssh key.

https://github.com/aselvan/scripts/blob/master/router/asus_usbmount.sh