Gitea是通过Kubernetes集群上的舵图设置的。就像在Gitea - SSH Auth ok but can't push to remote中一样,SSH可以很好地处理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.我不知道该怎么做..。
发布于 2022-08-03 09:25:13
如果您确实看到了ssh -Tv git@your.Gitea中的“ssh -Tv git@your.Gitea”,这意味着您实际上没有“正确的访问权限”。
或者您在存储库URL中犯了一个小错误(小写/调理)。这将解决错误消息的第二部分("the repository [does not] exists")
OP xeruf点在the comments到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: giteahttps://stackoverflow.com/questions/73204170
复制相似问题