Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to enable SSH in context-windows #156

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

lukasfazik
Copy link

Description

I have added the enableSSH function to the Windows contextualization package. I'm also calling this function from the contextualization loop.

This function:

  • Checks if sshd service is present (OpenSSH.Server capability is installed, or another SSH server is installed).
  • If the service is not present, the function ends gracefully
  • If the service is running and autostart is enabled, nothing is changed
  • If the service is not running, it will be started
  • If the service is not set to start automatically, it will be started

Function logs the following events:

  • The sshd service is not present
  • The sshd service is started and set to start automatically
  • The sshd service was started by the function
  • The sshd service was set to start automatically by the function

Things to consider

Function checks if sshd service is present
and then it enables and starts the service

Signed-off-by: Lukáš Fázik <lukas.faziklf@gmail.com>
Signed-off-by: Lukáš Fázik <lukas.faziklf@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant