Изman ssh
:
If command is specified, it is executed on the remote host instead of a login shell.
[...]
The session terminates when the command or shell on the remote machine exits and all X11 and TCP connections have been closed.
Так что да, соединение SSH закрывается после выполнения указанных вами команд.