gitfx / ssh-keygen-action

Generate a ssh key in GitHub Actions.

Repository from Github https://github.comgitfx/ssh-keygen-actionRepository from Github https://github.comgitfx/ssh-keygen-action

SSH keygen Action

The action runs ssh-keygen to generate a key pair stored in private_key.txt and public_key.txt, with rsa encryption and 4096 bits by default. You can specify your inputs.

Or just use the template to run a workflow_dispatch action to generate a specified one.

inputs

  comment:
    description: 'A comment to help you to identify the key, e.g. your email etc.'
    required: false
  encryption:
    # dsa | ecdsa | ed25519 | rsa
    description: 'Encryption type'
    required: true
    default: 'rsa'
  bits:
    description: 'Bits'
    required: true
    default: '4096'

About

Generate a ssh key in GitHub Actions.

License:Apache License 2.0