Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No connection if users binded to UID and GID of the root (0:0) #388

Open
sdotb opened this issue Aug 26, 2023 · 3 comments
Open

No connection if users binded to UID and GID of the root (0:0) #388

sdotb opened this issue Aug 26, 2023 · 3 comments

Comments

@sdotb
Copy link

sdotb commented Aug 26, 2023

binding data in users.conf file:

user1:pwd1:1000:1000
user2:pwd2:0:0

user 2 cannot login

@sdotb
Copy link
Author

sdotb commented Aug 26, 2023

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

@adrian-amaglio
Copy link

adrian-amaglio commented Oct 10, 2023

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

@TheSiman
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants