ssh-access¶
A task to put root ssh keys in place
This task populates the root's authorized keys file and makes sure that the sshd config for PermitRootLogin is populated.
Runs as part of a shell script for kickstart or net-post-install.
If the access-ssh-template is specified, that template is used to replace
the existing sshd config file.
Otherwise, the task will use the access-keys, access-keys-shared, and access-keys-global parameters to define keys to inject into the authorized_keys file for root.
The access-ssh-root-mode and access-ssh-parameters will alter the sshd config file. The access-ssh-parameters parameter is a general key/value map to replace config sections.
Optional Parameters: * access-keys * access-keys-shared * access-keys-global * access-ssh-root-mode * access-ssh-parameters * access-ssh-template
Parameter YAML format:
::
access-keys:
greg: ssh-rsa key
greg2: ssh-rsa key
access-ssh-root-mode: "without-password|yes|no|forced-commands-only"
Defaults: * access-keys - empty * access-ssh-root-mode - defaults to "without-password" if unspecified
Objects that Reference ssh-access¶
- stages centos-7-install-builder in Image Builder as part of Tasks (declared)
- stages ubuntu-16.04-install-builder in Image Builder as part of Tasks (declared)
- stages ubuntu-14.04-install-builder in Image Builder as part of Tasks (declared)
- stages ubuntu-18.04-install-builder in Image Builder as part of Tasks (declared)
- stages sles-15-sp6-gm-install in Other OSes Installers as part of Tasks (declared)
- stages photon-3-install in Other OSes Installers as part of Tasks (declared)
- stages photon-4-install in Other OSes Installers as part of Tasks (declared)
- stages photon-full-4-install in Other OSes Installers as part of Tasks (declared)
- stages photon-rt-4-install in Other OSes Installers as part of Tasks (declared)
- stages sles-15-install in Other OSes Installers as part of Tasks (declared)
- stages rhel-server-7-install in Other OSes Installers as part of Tasks (declared)
- stages rhel-server-8-dvd-install in Other OSes Installers as part of Tasks (declared)
- stages rhel-server-9-dvd-install in Other OSes Installers as part of Tasks (declared)
- blueprints utility-update-ssh-keys in Core Task Library as part of Tasks (declared)
- stages ssh-access in Community Core as part of Tasks (declared)
- stages start in Community Core as part of Tasks (declared)
- stages ubuntu-18.04-arm64-hwe-install in Community Core as part of Tasks (declared)
- stages ubuntu-22.04-install in Community Core as part of Tasks (declared)
- stages fedora-33-install in Community Core as part of Tasks (declared)
- stages debian-12-install in Community Core as part of Tasks (declared)
- stages centos-7.6.1810-install in Community Core as part of Tasks (declared)
- stages centos-7.7.1908-install in Community Core as part of Tasks (declared)
- stages debian-8-install in Community Core as part of Tasks (declared)
- stages debian-10-install in Community Core as part of Tasks (declared)
- stages rocky-8-install in Community Core as part of Tasks (declared)
- stages ubuntu-16.04-install in Community Core as part of Tasks (declared)
- stages ubuntu-20.04-install in Community Core as part of Tasks (declared)
- stages discover-nobootenv in Community Core as part of Tasks (declared)
- stages fedora-31-install in Community Core as part of Tasks (declared)
- stages ubuntu-18.04-install in Community Core as part of Tasks (declared)
- stages debian-11-install in Community Core as part of Tasks (declared)
- stages discover-no-gohai in Community Core as part of Tasks (declared)
- stages ubuntu-20.04.3-install in Community Core as part of Tasks (declared)
- stages debian-9-install in Community Core as part of Tasks (declared)
- stages alma-8-install in Community Core as part of Tasks (declared)
- stages ubuntu-24.04-install in Community Core as part of Tasks (declared)
- stages discover in Community Core as part of Tasks (declared)
- stages ubuntu-20.04.2-install in Community Core as part of Tasks (declared)
- stages centos-7-install in Community Core as part of Tasks (declared)
- stages centos-8-install in Community Core as part of Tasks (declared)
- stages fedora-34-install in Community Core as part of Tasks (declared)
- stages centos-6.9-install in Community Edge as part of Tasks (declared)
- stages centos-7.3.1611-install in Community Edge as part of Tasks (declared)
- stages scientificlinux-6.8-install in Community Edge as part of Tasks (declared)
- stages ubuntu-14.04-install in Community Edge as part of Tasks (declared)
- stages centos-6-install in Community Edge as part of Tasks (declared)
Objects used by ssh-access¶
- templates access-keys.sh.tmpl in field Templates[0].ID as value access-keys.sh.tmpl