Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Ubuntu #83

Merged
merged 10 commits into from
Aug 24, 2017
Merged

Ubuntu #83

merged 10 commits into from
Aug 24, 2017

Conversation

michaelwittig
Copy link
Contributor

fixes #81
fixes #72

michaelwittig and others added 10 commits August 22, 2017 16:04
sshd's AuthorizedKeysCommand setting install did not work
on Debian-based distributions, since these directives:
- AuthorizedKeysCommand
- AuthorizedKeysCommandUser
are not present by default in sshd_config and the sed substitutions
did not work.
New checks are implemented in order to substitute or add corrected
lines of sshd configuration.
* Fix sshd AuthorizedKeysCommand setting problem

sshd's AuthorizedKeysCommand setting install did not work
on Debian-based distributions, since these directives:
- AuthorizedKeysCommand
- AuthorizedKeysCommandUser
are not present by default in sshd_config and the sed substitutions
did not work.
New checks are implemented in order to substitute or add corrected
lines of sshd configuration.

* Manage SSHd service name

Switch between ssh and sshd service name, based on Linux
distribution base.

* Bugfix on a case of sshd config content

Fix problem when AuthorizedKeysCommandUser is commented and it
was not replaced.
@michaelwittig michaelwittig merged commit 42a317c into master Aug 24, 2017
@michaelwittig michaelwittig deleted the ubuntu branch August 24, 2017 11:57
@nicholascowan
Copy link

This change breaks functionality on CENTOS7 because it's checking for init.d scripts and doesn't take into account systemd, the restart method should be systemctl restart sshd.

This causes script to throw an error since ssh.service is not found, and would break in any cloudformation scripts.

@michaelwittig michaelwittig mentioned this pull request Aug 25, 2017
@michaelwittig
Copy link
Contributor Author

hi @nicholascowan centos is not one of the supported distros at the moment. I opened an issue #84

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Showcase not working with ubuntu On Ubuntu service is called ssh
2 participants