无法通过ssh克隆repo(gitea)

时间:2018-03-15 10:39:26

标签: ubuntu-14.04 gitea

我已尝试部署' gitea'在我的虚拟机上。

gitea版本是:

$ ./gitea -v
Gitea version 1.3.2 built with: bindata, sqlite

os:

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.04.5 LTS
Release:    14.04
Codename:   trusty

gitea config:

SSH_DOMAIN       = <ip address>
DOMAIN           = <ip address>
HTTP_PORT        = 3000
ROOT_URL         = https://<ip address>/
DISABLE_SSH      = false
SSH_PORT         = 2222
LFS_START_SERVER = true
LFS_CONTENT_PATH = /home/git/data/lfs
LFS_JWT_SECRET   = Sxp3S45YtJMKPzVpcQZ9OvltVkTRGzdUVd4jU95irsE
OFFLINE_MODE     = false
PROTOCOL         = https
CERT_FILE        = /home/git/cert.pem
KEY_FILE         = /home/git/key.pem
SSH_ROOT_PATH    = /home/git/.ssh
START_SSH_SERVER = true
SSH_LISTER_PORT  = 22

除了ssh,一切正常。我的意思是我能够通过https与repo合作, 但我没有运气使用ssh 错误显示:

$ ssh -T git@<ip address> 
Hi there, You've successfully authenticated, but Gitea does not provide shell access.
If this is unexpected, please log in with password and setup Gitea under another user.

有人可以协助我解决这个问题吗?

1 个答案:

答案 0 :(得分:0)

可以通过禁用LFS服务器

来解决此问题
root@ACA80006:/home/test# grep -i lfs_start_server /home/git/custom/conf/app.ini
LFS_START_SERVER = false