Skip to content

Add a script to create and configure a dedicated Jenkins agent user on a VM #30

Description

@sony-level

Hi,

I’d like to propose adding a Bash script to help prepare a test server or VM to be used as a Jenkins SSH agent/node.

The script would:

  • create a dedicated Linux user for Jenkins, for example jenkins
  • create and secure the user’s .ssh/authorized_keys
  • allow adding the controller public key plus optional extra public keys
  • install Java if it is missing
  • optionally add the user to the docker group
  • lock the user password after setup

This would be useful for teams that want to turn a test VM into a Jenkins agent quickly and consistently.

The project already contains many Jenkins-related scripts, so this would fit well alongside the existing Jenkins utilities.

Suggested file name:

  • jenkins/setup_jenkins_agent_user.sh
    or
  • jenkins/jenkins_setup_agent_user.sh

If helpful, I can also contribute the script itself in the same style as the existing Bash tools.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions