Skip to content

SSH Key Pair for Web User #1259

@MikeiLL

Description

@MikeiLL

Summary

Would it make sense to have a task that generates a key pair for the web user?

Motivation

On a new migration, I'm frequently using rsync to transfer shared content like the uploads directory. This requires me to have an ssh key pair on the new Trellis server.

- name: Generate an OpenSSH keypair with the default values (4096 bits, rsa)
  community.crypto.openssh_keypair:
    path: /home/web/.ssh/id_rsa
  tags: [webkeypair]

That's obviously an ignorant approach, but I'm not even sure if the idea makes sense.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions