Gitea是通过Kubernetes集群上的helm图表设置的。如在Gitea-SSH验证可以,但可以';t推送到远程,SSH Auth可以很好地与git
用户配合使用。HTTPS连接也可以正常工作。
但是当我尝试通过SSH推送或拉取时,我得到:
Gitea: Unauthorized
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
我不知道该怎么办…
如果您确实看到"CCD_ 2";对于ssh -Tv git@your.Gitea
,这意味着你实际上没有";具有正确的访问权限";。
或者您在存储库URL中犯了一个小错误(小写/大写,或打字错误(。这将寻址错误消息的第二部分("the repository [does not] exists
"(
OP xeruf指向metallb-gitea.yaml
:的注释
# https://metallb.org/usage/
#apiVersion: metallb.io/v1beta1
apiVersion: v1
kind: Service
metadata:
name: gitea-ssh
namespace: stackspout
annotations:
metallb.universe.tf/allow-shared-ip: "share-ipv4"
spec:
type: LoadBalancer
loadBalancerIP: "${ip_address}"
ports:
- name: ssh
protocol: TCP
port: 22
targetPort: 22
selector:
app: gitea