(I tried to tag this for the openssh-server
but Discourse wouldn’t let me)
I’m having a little trouble getting this going the way I would like it to. Quite simple, actually, I want to plug in multiple public keys and allow them to auth for SCP file transfers.
The documentation suggests this is the way to go:
- PUBLIC_KEY_DIR=[valid path on the host machine?]
- PUBLIC_KEY_DIR=/home/username/appdata/scp-server/pubkeys
So I create a folder and a file within the folder. In the file I paste my public SSH key:
ssh-rsa AAAAB[omitted for security reasons]oaCew== username
So I start the container, can’t SSH in. I shell into the container and there’s nothing in the authorized_keys
file, it’s empty
Initially, the file containing my key was just username
. I tried changing it to username.pub
, still nothing, I tried changing it from a directory to an actual filename, so the mount is a file and not a directory, still no joy.
I guess my first question is does this directory need to be a volume mount? If not, is there a format to the filename? Permissions?
[migrations] started
[migrations] no migrations found
usermod: user 'abc' does not exist
groupmod: group 'abc' does not exist
usermod: no changes
───────────────────────────────────────
██╗ ███████╗██╗ ██████╗
██║ ██╔════╝██║██╔═══██╗
██║ ███████╗██║██║ ██║
██║ ╚════██║██║██║ ██║
███████╗███████║██║╚██████╔╝
╚══════╝╚══════╝╚═╝ ╚═════╝
Brought to you by linuxserver.io
───────────────────────────────────────
To support LSIO projects visit:
https://www.linuxserver.io/donate/
───────────────────────────────────────
GID/UID
───────────────────────────────────────
User UID: 0
User GID: 0
───────────────────────────────────────
User name is set to username
sudo is disabled.
sshd is listening on port 2222
User/password ssh access is disabled.
[custom-init] No custom files found, skipping...
[ls.io-init] done.