I have a git repository on a remote server. I am trying to clone it on my PC using this command:
git clone ftp: // xxxx / testGit / testGit
But I keep getting the error:
fatal: cannot access ftp: // xxxx / testGit / ': the server forbade you to change this directory
The same URL works fine in my browser, I really don't understand ...
I use vsftpdwith this configuration:
vsftpd
listen=YES anonymous_enable=YES local_enable=NO write_enable=NO local_root=/home/play/
I have no ideas ...
You need to run git update-server-infoon the server :)
git update-server-info
(.. .git), /.git , @Rohit Pothuraju.
.git
/.git
?
, vsftpd. , ( ).
, TCP-. , :
1. nc -v x.x.x.x 21 # connect to the real server 2. nc -l -v -p 1234 # listen on some port # if it says "This is nc from the netcat-openbsd package", remove the '-p' 3. git clone ftp://localhost:1234/testGit/ testGit # the program you want to debug, but with the server address replaced
1 2. , . .
:
-v netcat . , ! 1
-v
localhost [123.0.01] (?) open
2
listening on [any] 1234... connect to [127.0.0.1] from localhost [1237.0.0.1] 53929
(, FTP) . , , .
.
git clone ftp://username:password@ftp.company.com:PORT/project.repo/.git
Source: https://habr.com/ru/post/1679154/More articles:java - contents of relevant data in HashMap - javaAngularjs variable value is not updated the first time sweetAlert succeeds - angularjsDisplay php result in HTML using AJAX - javascriptHow to integrate a material components website with an Angular CLI project? - angularStacked Widgets запускают как собственное событие - pythonAccurate text generation - generatorПравильный способ ввода чистого класса в приложение angular 1.x в ES6 - javascriptИтерация цикла Java8 Stream - javaHow to add BackgroundImage to ListView in Xamarin Forms? - c #Flutter - top alignment text in container - dartAll Articles