Exhibit 23.1
We consent to the incorporation by reference in the Registration Statement (No. 333-51538) on Form S-8 of Greene Bancorp, Inc. of our report dated June 24, 2022, with respect to the statements of net assets available for benefits of The Bank of Greene County Employees’ Savings & Profit Sharing Plan and Trust as of December 31, 2021, and 2020, the related statements of changes in net assets available for benefits for the years then ended, and the related supplemental schedule as of December 31, 2021, which report appears in the December 31, 2021 annual report on Form 11-K of The Bank of Greene County Employees’ Savings & Profit Sharing Plan and Trust.
/s/Bonadio & Co., LLP
Bonadio & Co., LLP
Syracuse, New York
June 24, 2022
15