code: public static ExtSSHExec build(final INodeEntry nodeentry, final String[] args,
              final Project project,
              final Map<String, Map<String, String>> dataContext,
              final SSHConnectionInfo sshConnectionInfo, final int loglevel, final PluginLogger logger) throws
              BuilderException {
  
  
          final ExtSSHExec extSSHExec = new ExtSSHExec();
          build(extSSHExec, nodeentry, args, project, dataContext, sshConnectionInfo,
                  loglevel, logger);
  
          extSSHExec.setAntLogLevel(loglevel);
          return extSSHExec;
  
      }
docs: Build a Task that performs SSH command
  
  @param loglevel  level
  @param nodeentry   target node
  @param args        arguments
  @param project     ant project
  @param dataContext data
  @param logger logger
  @param sshConnectionInfo connection info
  
  @return task
  @throws BuilderException on error