# Problems with FTP PUSH

2 messages from 2020-08-18 to 2020-08-18. Participants: Ian S. Worthington, Junio C Hamano.
Thread: https://gitlist.dev/t/54061

## Ian S. Worthington, 2020-08-18 11:46

Subject: Problems with FTP PUSH
Message-ID: <196yHRLtV8416Set.1597751181@web13.cms.usa.net>
URL: https://gitlist.dev/e/196yHRLtV8416Set.1597751181%40web13.cms.usa.net

```
Hi guys -- 

I have a server without https and so I'm trying to establish if I can host a
repository there using ftp.  The manuals suggest that I can, but when I try: 

>git push -v ftp://user:pw@host//u/path/repos/test/.git/ 
Pushing to ftp://user:pw@host//u/path/repos/test/.git/ 
fatal: unable to access 'ftp://host//u/path/repos/test/.git/': RETR response:
550 

Looking at it with wireshark, I can see the SIZE and the RETR of
.../test/.git/info/refs reports the file does not exist, which is correct and,
as far as I can see, normal(?), but that the RETR failure terminates the push:


<image deleted> 

Have I made an error in the setup of my repos, or some other foolish mistake?



Best wishes, 

i 
... 

Ian S Worthington 


```

## Junio C Hamano, 2020-08-18 20:08

Subject: Re: Problems with FTP PUSH
Message-ID: <xmqqeeo3yawr.fsf@gitster.c.googlers.com>
URL: https://gitlist.dev/e/xmqqeeo3yawr.fsf%40gitster.c.googlers.com
In-Reply-To: <196yHRLtV8416Set.1597751181@web13.cms.usa.net>

```
"Ian S. Worthington" <ianworthington@usa.net> writes:

> I have a server without https and so I'm trying to establish if I can host a
> repository there using ftp.  The manuals suggest that I can, but when I try: 

Which manuals?

IIUC, a dumb HTTP(S) server that accepts only GET can still serve
"git fetch", and an FTP(s) server would be able to do the same using
similar codepath, but I do not think these can accept "git push".  A
dumb HTTP(S) may be able to accept "git push" if it does WebDAV, but
I do not think there is corresponding FTP support at all.


```
