57 Commits

Author SHA1 Message Date
Boshi Lian
d9b4e938c5 enable support for sshd_config.d by updating configuration paths and uncommenting includes 2025-02-12 02:37:20 -08:00
Boshi Lian
a72a425b0d add support to sshd_config.d
<!--- Provide a general summary of your changes in the Title above -->

[linuxserverurl]: https://linuxserver.io
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)][linuxserverurl]

<!--- Before submitting a pull request please check the following -->

<!---  If this is a fix for a typo (in code, documentation, or the README) please file an issue and let us sort it out. We do not need a PR  -->
<!---  Ask yourself if this modification is something the whole userbase will benefit from, if this is a specific change for corner case functionality or plugins please look at making a Docker Mod or local script  https://blog.linuxserver.io/2019/09/14/customizing-our-containers/ -->
<!---  That if the PR is addressing an existing issue include, closes #<issue number> , in the body of the PR commit message   -->
<!---  You have included links to any files / patches etc your PR may be using in the body of the PR commit message -->
<!--- We maintain a changelog of major revisions to the container at the end of readme-vars.yml in the root of this repository, please add your changes there if appropriate -->

<!--- Coding guidelines: -->
<!--- 1. Installed packages in the Dockerfiles should be in alphabetical order -->
<!--- 2. Changes to Dockerfile should be replicated in Dockerfile.armhf and Dockerfile.aarch64 if applicable -->
<!--- 3. Indentation style (tabs vs 4 spaces vs 1 space) should match the rest of the document -->
<!--- 4. Readme is auto generated from readme-vars.yml, make your changes there -->

------------------------------

 - [ ] I have read the [contributing](https://github.com/linuxserver/docker-openssh-server/blob/master/.github/CONTRIBUTING.md) guideline and understand that I have made the correct modifications

------------------------------

<!--- We welcome all PR’s though this doesn’t guarantee it will be accepted. -->

## Description:
<!--- Describe your changes in detail -->

## Benefits of this PR and context:
<!--- Please explain why we should accept this PR. If this fixes an outstanding bug, please reference the issue # -->

## How Has This Been Tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, and the tests you ran to -->
<!--- see how your change affects other areas of the code, etc. -->

## Source / References:
<!--- Please include any forum posts/github links relevant to the PR -->
2025-02-05 00:11:43 -08:00
thespad
5b5888d00e
Pick a safer filename 2024-11-27 22:14:44 +00:00
thespad
8d21fc104e
Don't halt on custom user on restarts 2024-11-27 22:13:38 +00:00
thespad
dcebd4769c
Fix path typo 2024-11-27 18:33:02 +00:00
thespad
1383ead42c
Fix host key permissions on migration if needed 2024-11-25 19:46:04 +00:00
thespad
348399e4ba
Allow abc as USER_NAME 2024-11-24 19:43:39 +00:00
thespad
69cf34d588
Don't check USER_NAME if it's not set 2024-11-24 19:31:54 +00:00
thespad
e02ba195a6
Move everything out of the container filesystem into its own directories 2024-11-24 19:26:15 +00:00
thespad
71298094f4
Don't allow USER_NAME to be set to existing user 2024-11-24 19:07:12 +00:00
thespad
41d7d434e7
Use slightly more restrictive permissions 2024-11-24 14:02:41 +00:00
thespad
cde9104391
Host priv keys need read for abc 2024-11-24 13:31:25 +00:00
thespad
c4b3d3dc59
Be more explicit with ssh_host_keys perms 2024-11-24 13:03:38 +00:00
thespad
e5ca2b0d1b
Improve wording 2024-11-22 09:57:33 +00:00
thespad
75eef9585c
Make it harder for logged in users to modify running config 2024-11-22 09:47:49 +00:00
thespad
3ee7d15fbd
Update keygen to default to ed25519 2024-11-22 09:47:17 +00:00
thespad
217876704d
Bring custom adduser into line with baseimage 2024-05-31 17:00:41 +01:00
Benjamin Howe
d7d02c8838 Switch from /etc/ssh to /config/ssh_host_keys 2024-05-03 11:37:48 +01:00
Benjamin Howe
2364b2a7bf
Display SSH host public keys 2024-04-07 21:49:32 +01:00
TheSpad
8ce8b6b4d5
All logging to stdout 2023-11-01 13:40:06 +00:00
TheSpad
d0477df144
Rebase to 3.18, deprecate armhf 2023-06-12 15:45:49 +01:00
TheSpad
528827af4f
Allow custom internal port 2023-04-15 22:11:50 +01:00
TheSpad
46f0bf3ead
Add armhf deprecation notice 2023-04-12 22:47:13 +01:00
TheSpad
27234c0784
Fix chmods that were set to chowns 2023-03-05 15:52:29 +00:00
TheSpad
36c1b2032b
Rebase to 3.17 2023-03-05 15:35:51 +00:00
Will Wang
ed5be92825 fix undesired logic operator precedence 2022-10-15 12:24:34 +08:00
TheSpad
0ba99d0975
Migrate to s6v3 2022-10-11 10:26:24 +01:00
aptalca
a09ffa3896 fix service perms to comply with s6v3 2022-07-18 14:55:27 -04:00
TheSpad
720058cf4f Address some shellcheck issues 2022-04-16 13:58:57 +01:00
driz
d274e8ea56
minor typo 2021-12-20 21:31:17 -05:00
Xabi
91338236a6
Merge branch 'linuxserver:master' into publickey_from_url 2021-11-16 17:23:54 +01:00
Adam
b222249f3b
Add pam support, rebase to 3.14 (#45) 2021-06-28 23:15:33 +01:00
Xabi Ezpeleta
d5d4857c2b Added missing && \ 2021-04-29 19:47:53 +02:00
Xabi
7113c7d1db
Add PUBLIC_KEY_URL option
The public key will be downloaded from the environment variable PUBLIC_KEY_URL
2021-04-28 23:10:04 +02:00
Johannes Bauer
9a0d675843 Add option to append all pubkeys in specified dir to authorized_keys 2021-02-02 18:24:03 +01:00
aptalca
f6108874f6 increase log file size limits 2020-10-20 15:33:46 -04:00
aptalca
d9fe008c39 fix log permissions, add note about rotation 2020-10-20 15:31:44 -04:00
aptalca
c43ce6fad8 switch to s6-log with timestamps 2020-10-20 14:59:53 -04:00
aptalca
4092a5b284 set umask for sftp 2020-10-20 09:46:24 -04:00
thelamer
a2f06e9019 adding basic key generation script 2020-01-18 10:09:06 -08:00
thelamer
bf81b75211 Merge branch 'initial' of github.com:linuxserver/docker-openssh-server into initial 2019-10-22 10:37:50 -07:00
thelamer
58b9a4d44a handle whether password auth is commented or not 2019-10-22 10:37:37 -07:00
aptalca
61337aa4c8 UsePAM is unsupported 2019-10-22 13:32:31 -04:00
aptalca
a7821cf859 UsePAM no is unsupported 2019-10-22 13:16:52 -04:00
aptalca
7949f16116 fix /config permissions 2019-10-22 12:58:55 -04:00
aptalca
022b1faf04 fix typos and increase verbosity 2019-10-21 18:16:07 -04:00
thelamer
112da4b732 adding password based auth 2019-10-21 13:30:20 -07:00
aptalca
ccb7e133eb log to file, add logrotate 2019-10-21 15:44:25 -04:00
thelamer
138e644e38 rework ssh key generation logic, run as non root, use non priv port 2019-10-21 09:46:27 -07:00
aptalca
6be406bac4 check if files exist, increase verbosity 2019-10-21 11:07:52 -04:00