Can't get ssh pub keys into linuxserver/openssh-server #67
Replies: 4 comments 8 replies
-
|
try adding |
Beta Was this translation helpful? Give feedback.
-
|
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.
-
|
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.
-
|
the following should also work: volumes:
- /path/to/config:/config
- /path/to/authorized_keys:/config/.ssh/authorized_keys |
Beta Was this translation helpful? Give feedback.
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