This bundle allows you to execute mysql and mysqldump commands without passing any authentication parameters, il will automatically uses the one declared in doctrine.
$ bin/console sidus:database:mysqldump > dump.sql
$ ssh username@host "/path/to/symfony/bin/console sidus:database:mysqldump" > dump.sql
$ ssh username@host "/path/to/symfony/bin/console sidus:database:mysqldump" | bin/console sidus:database:mysql
$ bin/console sidus:database:mysqldump | ssh username@host "/path/to/symfony/bin/console sidus:database:mysql"