偶发性ssh拉取代码失败fatal: Could not read from remote repository

报错为

fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Unable to fetch in submodule path 'basecore'

根据官网指示,git用户设置了可用的shell:/bin/bash,并且.ssh/authorized_keys文件也是正常的,目前是使用的openresty的22端口(openresty的ssh端口改为了2222),将外网流量stream代理到gitea机器上的22端口,但是就是会出现偶发性的拉取失败。