private function createSshConnectionDefinition(
        $sshId,
        $serverName,
        $directory,
        $executable,
        array $sshConfig
    ) {
        $connectionDefinition = new Definition(
            SshConnection::class, [
                new Reference($sshId),
                new Reference('input'),
                new Reference('output'),
                $serverName,
                $directory,
                $executable,
                $sshConfig,
            ]
        );
        $connectionDefinition->setLazy(true);

        return $connectionDefinition;
    }