Starting work on Implementing SSH Server Service
This commit is contained in:
@@ -910,6 +910,25 @@ function systemctlPage() {
|
||||
}
|
||||
}
|
||||
|
||||
function sshdConfigPage() {
|
||||
return {
|
||||
name: 'sshd_config',
|
||||
section: 5,
|
||||
title: 'OpenSSH sshd configuration file (Bare OS subset)',
|
||||
synopsis: ['/etc/ssh/sshd_config'],
|
||||
description:
|
||||
'Bare OS reads a subset of OpenSSH sshd_config directives from the system image. Supported keys include Port, ListenAddress, HostKey (repeatable; tilde expands to $HOME on the personal drive), PasswordAuthentication, PubkeyAuthentication, PermitRootLogin, AllowTcpForwarding, MaxAuthTries, ClientAliveInterval, AuthorizedKeysFile (relative paths resolve under $HOME), and Subsystem sftp. Unsupported lines are ignored. Strong ciphers default to bare-ssh2 stock algorithm lists.',
|
||||
options: [],
|
||||
keywords: ['ssh', 'sshd', 'config', 'security'],
|
||||
bareOsNotes:
|
||||
'HostKey paths must be writable; the stock config places keys under ~/.config/bare-os/ssh/host/.',
|
||||
seeAlso: [
|
||||
{ name: 'sshd', section: 8 },
|
||||
{ name: 'man', section: 1 }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
function shellPage() {
|
||||
return {
|
||||
name: 'bare-os-shell',
|
||||
@@ -1030,9 +1049,11 @@ async function main() {
|
||||
? ctxBarePage()
|
||||
: name === 'systemctl'
|
||||
? systemctlPage()
|
||||
: name === 'bare-os-shell'
|
||||
? shellPage()
|
||||
: (() => {
|
||||
: name === 'sshd_config'
|
||||
? sshdConfigPage()
|
||||
: name === 'bare-os-shell'
|
||||
? shellPage()
|
||||
: (() => {
|
||||
throw new Error(
|
||||
`seed-man-pages: unknown MAN_EXTRA_PAGES entry: ${name}`
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user