更改Hosts
Gitea 通过 Cloudflare Tunnel 穿透,而 Cloudflare Tunnel 不支持 ssh 穿透。因此,为了加速访问,以及增加对 ssh git 的支持,请参考下面文章,更换解析为直连。
登陆/创建账号
推荐使用 SCUTOSC Keycloak 登陆。该 SSO 提供了到校内其他服务的登陆功能,比如
关于 Keycloak 账号使用 请参考:
绑定ssh密钥使用 git
点击右上角 头像
- Settings
- ssh/GPG Keys
, 填入您的公钥。
执行 ssh [email protected]
,看到类似下方的输出结果即成功绑定:
❯ ssh [email protected]
The authenticity of host 'gitea.scutosc.cn (110.64.73.95)' can't be established.
RSA key fingerprint is SHA256:ANY.
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added 'gitea.scutosc.cn' (RSA) to the list of known hosts.
PTY allocation request failed on channel 0
Gitea: Unable to access repository path
Hi there, Samuka007! You've successfully authenticated with the key named samuka@nixos, but Gitea does not provide shell access.
If this is unexpected, please log in with password and setup Gitea under another user.
Connection to gitea.scutosc.cn closed.