The dengue virus (DENV) is primarily transmitted by Aedes aegypti. Investigating genes associated with mosquito susceptibility to DENV2 offers a theoretical foundation for targeted interventions to regulate or block viral replication and transmission within mosquitoes. Based on the transcriptomic analyses of the midgut and salivary glands from Aedes aegypti infected with DENV2, alongside analyses of Aag2 cell infections, 24 genes potentially related to the regulation of Aedes aegypti infection with DENV2 were selected. By establishing transient transfection and overexpression models of Aedes aegypti Aag2 cells, and mosquito target gene interference models, the difference in viral load before and after treatment was compared, and the effects of DEGs on viral replication were evaluated. After overexpressing 24 DEGs in Aag2 cells, 19 DEGs showed a significant difference in DENV2 RNA copies in the cell supernatant (p < 0.05). In adult mosquitoes, knocking down defensin-A, defensin-A-like, and SMCT1 respectively reduced the DENV2 RNA copies, while knocking down UGT2B1 and ND4 respectively increased the DENV2 RNA copies. In this study, to assess the role of genes related to DENV2 replication, and transient transfection and overexpression models in Aag2 cells and mosquito gene knockdown models were established, and five genes, defensin-A, defensin-A-like, SMCT1, UGT2B1, and ND4, were found to have an impact on the replication of DENV2, providing a reference basis for studying the complex mechanism of mosquito–virus interactions.