My understanding is this exploit disables password authentication and allows you to access the device. A seperate command allows you to re-enable it.
Would this re-enabling kill your current connection? Is the password later needed to change settings on the router (like if you typed sudo and are forced to re-authenticate)?