It doesn't finish, can be like that for hours until I kill it... As I see it it is waiting for the script to start it and since it never starts, also the install script never ends...When you get this line
AdGuardHome... dead.
Make sure you are staying inside the terminal until the process finishes. It should be returning to the installer menu at some point. If you are exiting the ssh session too soon then it might not be completing the configuration process 100 percent.