Edit: This can only be used when in LEDE/OpenWRT. When in the Linksys firmware, you could try the power reset trick that was linked, but it's not possible to SSH with the Linksys firmware.
Also the Linksys original firmware offers the possibility to boot into the other firmware: "restore previous firmware".
It is named a bit misleadingly, but in the context of two firmware partitions, it means the same switch to the other partition.