sftp
sftp copied to clipboard
No connection if users binded to UID and GID of the root (0:0)
binding data in users.conf file:
user1:pwd1:1000:1000 user2:pwd2:0:0
user 2 cannot login
tried also setting environment in docker-compose.yml seems not working, with new version of image i obtain a warning in logs referred to user UID out of range
environment:
- MIN_UID=0
- MAX_UID=6000
Hello ! I am not a maintainer of this repository but I think this may be due to the config line PermitRootLogin no
in the file /etc/ssh/sshd_config
. You can find a way to change the config in the PR #382
Adrian's solution is correct, If I may offer an alternative in Containerfile/Dockerfile, i think it's easier to understand at first glance:
RUN sed -i -e 's/PermitRootLogin no/PermitRootLogin yes/g' /etc/ssh/sshd_config