Can't get ssh pub keys into linuxserver/openssh-server #67
Unanswered
freekvh
asked this question in
Container Support
Replies: 3 comments 6 replies
-
|
try adding |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Public key dir needs to be the path inside the container and definitely has to be an absolute path |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
Two issues:
Fix your docker-compose.yml: environment:
- PUBLIC_KEY_DIR=/mnt/pubkeys # Absolute path
volumes:
- ./pubkeys:/mnt/pubkeys:ro # Mount host directoryThe container reads all files in |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to run linuxserver/openssh-server on a synology nas to get some decent ssh capabilities.
I'm using this docker compose:
./pubkeys contains pubkey files:
But I keep getting this error:
It does however work when I use PUBLIC_KEY_URL with my GH keys, so I know it should in principle work.
Am I missing something? Are my pubkeys not stored correctly? I just used the files from my .ssh folder.
Or am I not point to the folder correctly? I've also tried "/volume1/qodon/docker/pubkeys", "/volume1/qodon/docker/pubkeys/" and "qodon/docker/pubkeys" and many other variations.
Thanx.
Beta Was this translation helpful? Give feedback.
All reactions