~chad.smith/cloud-init:feature/ssh-redirect-user

Last commit made on 2018-09-07
Get this branch:
git clone -b feature/ssh-redirect-user https://git.launchpad.net/~chad.smith/cloud-init
Only Chad Smith can upload to this branch. If you are Chad Smith please log in for upload directions.

Branch merges

Branch information

Name:
feature/ssh-redirect-user
Repository:
lp:~chad.smith/cloud-init

Recent commits

837e6e0... by Chad Smith

docs

95e82cc... by Chad Smith

tests: fix for py2 py3

- use assertItemsEqual to allow for unordered lists in different envs
- use regex in unit tests to catch int/class type differences in py2/3

9a12b60... by Chad Smith

pyflakes

76442cd... by Chad Smith

raise ValueErrors if ssh_authorized_keys or ssh_import_id are passed with ssh_redirect_user

d9b95e1... by Chad Smith

lints and unit tests for distro.create_user redirects

9bdf570... by Chad Smith

unittests, flakes and log warning on no default_user

c47db42... by Chad Smith

pycodestyle

95106bd... by Chad Smith

docs: rtd entries for ssh_redirect_user

27f46b9... by Chad Smith

config: disable ssh access to a configured user account

Vendor-data or user-data can now disable ssh access to a non-root user
which cloud-init creates.

The only difference is configuration now allows disabling a specific
non-root user.

When defining the 'users' list in cloud-configuration a boolean
'ssh_redirect_user: true' can be provided for any user will disable
ssh logins for that specific user. Any public-ssh-keys defined in cloud
meta-data will be added as authorized_keys which will be in a disabled
state preventing successful ssh login. Any attempts to ssh as this user
using acceptable ssh keys will be greeted with a message like the
following:

Please login as the user "ubuntu" rather than the user "cantlogin".

This behavior is equivalent to the existing disable_root config option
for non-root users.

f2dad8b... by Francis Ginther

Attempt to pass in cloud and default users ssh keys to the redirect user