Coder Social home page Coder Social logo

Comments (7)

stilliard avatar stilliard commented on July 28, 2024 1

Hey @Gwynevere

Ah yep this is something I run into sometimes too, I think you need to change your docker run command where you have PUBLICHOST=localhost to PUBLICHOST=192.168.1.2

Let me know if this still doesn't work though, hope it helps.

from docker-pure-ftpd.

Gwynevere avatar Gwynevere commented on July 28, 2024

Hey @Gwynevere

Ah yep this is something I run into sometimes too, I think you need to change your docker run command where you have PUBLICHOST=localhost to PUBLICHOST=192.168.1.2

Let me know if this still doesn't work though, hope it helps.

I did but it doesn't work

docker run -d --name ftpd_server -p 21:21 -p 30000-30009:30000-30009 -e "ADDED_FLAGS=--tls 0" -e "PUBLICHOST=192.168.1.2" -e "FTP_MAX_CLIENTS=50" -e FTP_USER_NAME=bob -e FTP_USER_PASS=12345 -e FTP_USER_HOME=/home/bob stilliard/pure-ftpd

from docker-pure-ftpd.

stilliard avatar stilliard commented on July 28, 2024

Ah ok, maybe try using passive mode with the ftp command with the -p flag?
Changing from ftp -inv to ftp -invp should handle that, worth a try.

from docker-pure-ftpd.

Gwynevere avatar Gwynevere commented on July 28, 2024

I work with GIt-Bash though, I have the following error, its an unrecognized parameter

Transfers files to and from a computer running an FTP server service
(sometimes called a daemon). Ftp can be used interactively.

FTP [-v] [-d] [-i] [-n] [-g] [-s:filename] [-a] [-A] [-x:sendbuffer] [-r:recvbuffer] [-b:asyncbuffers] [-w:windowsize] [host]

  -v              Suppresses display of remote server responses.
  -n              Suppresses auto-login upon initial connection.
  -i              Turns off interactive prompting during multiple file
                  transfers.
  -d              Enables debugging.
  -g              Disables filename globbing (see GLOB command).
  -s:filename     Specifies a text file containing FTP commands; the
                  commands will automatically run after FTP starts.
  -a              Use any local interface when binding data connection.
  -A              login as anonymous.
  -x:send sockbuf Overrides the default SO_SNDBUF size of 8192.
  -r:recv sockbuf Overrides the default SO_RCVBUF size of 8192.
  -b:async count  Overrides the default async count of 3
  -w:windowsize   Overrides the default transfer buffer size of 65535.
  host            Specifies the host name or IP address of the remote
                  host to connect to.

Notes:
  - mget and mput commands take y/n/q for yes/no/quit.
  - Use Control-C to abort commands.

from docker-pure-ftpd.

stilliard avatar stilliard commented on July 28, 2024

Interesting, on linux bash there's a -p flag but yeah looks like the git-bash on windows doesn't have this flag, maybe it doesn't support it but I think an alternative way to enter passive mode is inside your ftp call, under the user $USERNAME $PASSWORD line but before the mput "$TMP_FILE_TO_COPY" line you could try adding this line: passive .

from docker-pure-ftpd.

Gwynevere avatar Gwynevere commented on July 28, 2024

its quote pasv for ftp.exe in Windows 10, but it doesn't work neither, I'm gonna try to copy with SCP-Script since WinSCP creates files on FTP server just fine.

Thank you @stilliard

from docker-pure-ftpd.

stilliard avatar stilliard commented on July 28, 2024

Ah ok, I didn't realise about the windows 10 / git-bash differences for this, I'll have to have more of a look into that some time but glad you have an alternative solution at least.

No problem, let me know if there's anything else I can help with.

from docker-pure-ftpd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.