DO Ideas 2

Configure droplet provisioning with username + ssh public key

I would prefer to be able to put my SSH key into a form field along with my preferred username and opt out of any kind of root password at all. I prefer having the password disabled.

Optionally, I'd appreciate it if you can only auth through ssh keys by default

  • Johnneylee Rollins
  • Sep 11 2018
  • Shipped
  • Attach files
  • Johnneylee Rollins commented
    September 11, 2018 19:26

    I might suggest disabling the root account and disabling root logins from ssh and instead taking a preferred username that will be created and added to a sudo group upon droplet creation.

  • Moisey Uretsky commented
    September 11, 2018 19:26

    We do not support adding additional users but we do support adding SSH keys for the root user during droplet creation.

    If you want to have other users you can create a base OS image and add them then take a snapshot of that server.

    Then when you create new servers from that snapshot the users will be there.

  • Johnneylee Rollins commented
    September 11, 2018 19:26

    Can this be supported in the web ui?

  • Moisey Uretsky commented
    September 11, 2018 19:26

    When you use SSH keys for droplet creation a root password is not emailed because we assume that you want to use the more secure SSH keys as your method of connection.

    Unfortunately we do not do user management and leave that up to you after you login, but you can roll out something like Puppet or Chef to get your infrastructure auto-configured after its been deployed.

  • Johnneylee Rollins commented
    September 11, 2018 19:26

    Can I extend the feature to disable root password and root ssh login, and provide my username for my user?

  • Johnneylee Rollins commented
    September 11, 2018 19:26

    That is so awesome.

  • Moisey Uretsky commented
    September 11, 2018 19:26

    This is now supported just add &ssh_keys=ssh_key_id1,ssh_key_id2,ssh_key_id3

    Thanks