Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

SSH_USER_HOME on mapped host directory does not work #906

@daniel-es6

Description

@daniel-es6

I mounted the host directory to the container using /some/host/directory:/host
and set SSH_USER_HOME to /host/%u

The container boot up for the first time, and then will fail to start with error message like below:

2021-03-21 03:28:24,033 INFO exited: system-timezone-wrapper (exit status 0; expected)
useradd: warning: the home directory already exists.
Not copying any file from skel directory into it.
mkdir: cannot create directory '/host/userxx/.ssh': File exists
2021-03-21 03:28:24,261 INFO exited: sshd-bootstrap (exit status 1; not expected)
2021-03-21 03:28:24,268 INFO reaped unknown pid 112
2021-03-21 03:28:24,607 INFO reaped unknown pid 96
ERROR: sshd-wrapper timed out waiting on sshd-bootstrap
2021-03-21 03:28:28,041 INFO exited: sshd-wrapper (exit status 1; not expected)
2021-03-21 03:28:29,042 INFO gave up: sshd-wrapper entered FATAL state, too many start retries too quickly

Metadata

Metadata

Assignees

Labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions