【发布时间】:2023-03-04 08:14:05
【问题描述】:
我在远程服务器上设置了一个 git repo。 我正在尝试使用此命令在我自己的 PC 上克隆它:
git clone ftp://x.x.x.x/testGit/testGit
但我不断收到错误:
致命:无法访问“ftp://x.x.x.x/testGit/”:服务器拒绝您更改到给定目录
相同的网址在我的浏览器中运行良好,我不太明白...
我在这个配置中使用vsftpd:
listen=YES
anonymous_enable=YES
local_enable=NO
write_enable=NO
local_root=/home/play/
我没有想法......
【问题讨论】:
-
那个 git repo 是在监听 ftp 端口吗?每当我从 github 或 bitbucket 克隆时,协议总是 http 或 https。
-
“监听 ftp 端口”是什么意思?我正在通过 FTP 协议访问 repo,是否可以为此在 git 中进行调整?