简体   繁体   中英

Clone git using ftp: Server denied you to change to the given directory

I try to clone git using ftp

ftp://annejulie%40blue-world.pl:password@blue-world.pl:21/home/kunass2/git/annejulie.blue-world.pl.git

What is wrong that server denied me to access the files?

annejulie@blue-world.pl has an right to follow path on my server: /home/kunass2/domains/annejulie.blue-world.pl.

I am just learning about this topics, and looking for solution to fix this issue.

The ftp server is probably configured to give access to directories under /home/kunass2/domains, not the home directory so you can't go up then back down to the git directory.

To confirm this, don't use git, just an ftp client and see which directories you can change to.

I have got this error when in the FTP client i have set the server's directory "/" thinking it will be considered as a FTP root directory, not system root directory. So maybe you have defined wrong path or one which the FTP user is denied to access (permissions, rights).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM