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

issue with ssh keys in reprepro image #18

Open
brianhenson opened this issue Jan 12, 2024 · 1 comment
Open

issue with ssh keys in reprepro image #18

brianhenson opened this issue Jan 12, 2024 · 1 comment

Comments

@brianhenson
Copy link

I am trying to use the image reprepro and when I use the ssh keys it keeps saying Permission denied (publickey). I have double, triple and quadruple checked the key and even generated new ones to see if it will work. Got any ideas how to make this work? I love the image outside that one little bug.

@eilandert
Copy link
Owner

eilandert commented Jan 12, 2024

Hi, I don't use this image myself anymore, I switched to aptly about 2 years ago.

Maybe the sshd_config file should some modification? Could you take a look at https://github.com/eilandert/dockerized/blob/master/reprepro/repo/conf/sshd_config and see if thats correct? I don't see anything wrong with it

I added ssh-createkeys.sh and some lines in /sh/start.sh (inspired on my aptly container)

#create sshd keys if needed (absent on first run)
bash /ssh-createkeys.sh 1>/dev/null
chmod 600 /repo/ssh/*.key
chmod 644 /repo/ssh/*.pub
chmod 600 /repo/ssh/authorized_keys
chown root:root -R /repo/ssh

I hope this helps

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

2 participants