ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    VPS injected ssh keys

    IT Discussion
    ssh ssh keys vps vps security scripting automation
    4
    6
    877
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch
      last edited by

      Re: Building VitalPBX on Vultr Automatically

      @scottalanmiller said in Building VitalPBX on Vultr Automatically:

      Set up root keys to have automatically injected. This means you can SSH into your instance the moment that it is set up.

      This sounds nice on the surface, but when would you ever actually do this?

      Under no circumstances do I actually want anyone's key tied to the root user. It negates all accountability.

      I want root disabled in sshd and I want users only logging in with keys, never passwords.

      So this entire "feature" of VPS automation is lost on me.

      C 1 Reply Last reply Reply Quote 1
      • C
        Curtis @JaredBusch
        last edited by

        @JaredBusch I have wondered the same thing.

        1 Reply Last reply Reply Quote 0
        • C
          Curtis
          last edited by

          I like something more like this:

          https://www.digitalocean.com/community/tutorials/how-to-use-cloud-config-for-your-initial-server-setup

          JaredBuschJ 1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch @Curtis
            last edited by

            @Curtis said in VPS injected ssh keys:

            I like something more like this:

            https://www.digitalocean.com/community/tutorials/how-to-use-cloud-config-for-your-initial-server-setup

            Right, so a complex script is suddenly needed to be developed (not a bad thing) in order to securely handle something like this.

            Not a simply little shit ass couple lines like the original post.

            1 Reply Last reply Reply Quote 0
            • stacksofplatesS
              stacksofplates
              last edited by

              I don't see a ton of uses for it with a VPS. I usually create a template with something like Packer and Ansible to do the hardening and then just clone from that template, but that's using their base image. On providers like GCP you can determine what keys go with what users without creating templates. I still use templates though that I build with Packer and Ansible.

              1 Reply Last reply Reply Quote 1
              • scottalanmillerS
                scottalanmiller
                last edited by

                @JaredBusch said in VPS injected ssh keys:

                Under no circumstances do I actually want anyone's key tied to the root user. It negates all accountability.

                It's for pre-production setup. Not for deploying straight to production.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post