Giter VIP home page Giter VIP logo

docker-sftp's People

Contributors

asavartzeth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

docker-sftp's Issues

Users don't have write privileges to their own folder

I am new to docker and your image, so forgive my (possible) ignorance. I ran your image and was able to log into the SFTP server, but discovered the user did not have write privileges. I noticed the following line in /entrypoint.sh:
  chown root:root $SFTP_CHROOT/$user
which I changed to:
  chown $user:root $SFTP_CHROOT/$user

This allows the user to write to their own folder. Was there a reason that you made the owner of the users folder root? Perhaps you only wanted a read-only container? If so, then it is my belief the folder should be owned by the user and the permissions of the folder should remove write privileges. Am I missing something obvious?

Cheers,
Rich

sshd_config (Part 2)

This issue is a reply to your question in #2. I'm sorry to reply so late, I never saw your comment. I cannot reply in the original issue, because I've been locked out of it. Your recent changes highlighted the issue for me again.

I suspect you are right and I am interested in looking into this. One thing that is troublesome to me is I cannot find these hpn specific settings documented anywhere? Do you have any link or source that might aid me?

Yes, there's the HPN README which contains the HPN-specific options at the bottom. You can find it here https://github.com/rapier1/openssh-portable/blob/master/HPN-README.

Authaniation Problem

Hi
I have created a docker container using below command

docker run --name SFTPmock -v /mySftpVolume:/home/test123/upload -e SFTP_USER=test123 -e SFTP_PASS=abc123 -p 2222:22 -d asavartzeth/sftp

when i try to connect from other container using below command
[root@355f3fbc7c97 /]# sftp test123:[email protected]:22/upload
Permission denied (publickey,gssapi-keyex,gssapi-with-mic).
Couldn't read packet: Connection reset by peer

telnet is working
[root@355f3fbc7c97 /]# telnet 10.200.4.154 22
Trying 10.200.4.154...
Connected to 10.200.4.154.
Escape character is '^]'.
SSH-2.0-OpenSSH_7.4

sftp permission denied

Not understanding why this permission denied issue with default /sftp1 user please?

$ sftp -P 2222 sftp1@localhost

Welcome to your new sftp container!

To get the passwords, on the docker host system run this:
docker cp some-container:/sftp_pass .

For more information, see the official README.md
Link: http://registry.hub.docker.com/u/asavartzeth/sftp/

Link: http://github.com/AsavarTzeth/docker-sftp/

sftp1@localhost's password:
Connected to localhost.
sftp> put test.txt
Uploading test.txt to /sftp1/test.txt
remote open("/sftp1/test.txt"): Permission denied
sftp>

sshd_config

Shouldn't the sshd_config contain "HPNDisabled no" and "TcpRcvBufPoll yes"?

Connection closes as soon as I authenticate

I have the container setup with variables changing the username and password. When I connect to it using the correct username and password, the connection is closed by the server immediately. Incorrect user names and passwords throw messages about being incorrect, its only when everything is correct that the connection is dropped.

Accepted password for downloader from 192.168.1.4 port 54111 ssh2
bad ownership or modes for chroot directory component "/"
Accepted password for downloader from 192.168.1.4 port 54118 ssh2
bad ownership or modes for chroot directory component "/"
Address x.x.x.x maps to x.com, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
Accepted password for downloader from x.x.x.x port 3287 ssh2
bad ownership or modes for chroot directory component "/"
Address x.x.x.x maps to x.com, but this does not map back to the address - POSSIBLE BREAK-IN ATTEMPT!
Accepted password for downloader from x.x.x.x port 3292 ssh2
bad ownership or modes for chroot directory component "/"

read/write permissions

Hey,
how to configure custom user with write privilage to make uploding files allowed for user?

thanks in advance AG

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.