shell_command has an hardcoded timeout of 60 sec. Your command will be killed if it takes longer.
shell_command
I’ve created a custom component to help both with ssh commands and timeouts