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

    Remote management of VMs hosted in colocation

    IT Discussion
    remote management remote access virtualization colocation security
    11
    40
    2.8k
    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.
    • dafyreD
      dafyre @brandon220
      last edited by

      @brandon220 said in Remote management of VMs hosted in colocation:

      I thought virt-manager only used ssh to connect to the host. What about using key-based auth to the host and disable password auth? Seems it would be faster than going through ZT. I guess the laptop compromise still poses an issue in that scenario.

      If you realize your laptop has been Pwned or stolen then kick it out of the ZT network.

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

        @brandon220 said in Remote management of VMs hosted in colocation:

        I thought virt-manager only used ssh to connect to the host. What about using key-based auth to the host and disable password auth? Seems it would be faster than going through ZT. I guess the laptop compromise still poses an issue in that scenario.

        Keys or not, I will not open SSH to the public internet if I have a simple way around it.

        That is what I like about using something like ZeroTier for. His KVM host has zero presence on the Public internet. It only uses an outbound SSL session to connect to the ZT network.

        1 Reply Last reply Reply Quote 3
        • EddieJenningsE
          EddieJennings
          last edited by

          Perhaps if I wanted an extra thick tinfoil hat, I could have my managementVM connected to ZeroTier, setup $remoteDesktopMechanism on the VM, and connect to the managementVM from my laptop via ZeroTier to manage the kvm host and all of the other VMs.

          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @EddieJennings
            last edited by

            @eddiejennings said in Remote management of VMs hosted in colocation:

            Allowing an SSH connection to the managementVM from the Internet

            I have not tried this approach yet, and it appears more risky than the Screen Connect approach, since SSH to that VM would be open to the Internet. Unless I'm missing some benefit to this approach, I'll not be using it.

            Use a strong key, lock to your IP. Very safe. Add Fail2Ban, of course.

            Or add Salt and open/close based on need so it doesn't stay open.

            JaredBuschJ EddieJenningsE stacksofplatesS 3 Replies Last reply Reply Quote 2
            • JaredBuschJ
              JaredBusch @scottalanmiller
              last edited by JaredBusch

              @scottalanmiller said in Remote management of VMs hosted in colocation:

              @eddiejennings said in Remote management of VMs hosted in colocation:

              Allowing an SSH connection to the managementVM from the Internet

              I have not tried this approach yet, and it appears more risky than the Screen Connect approach, since SSH to that VM would be open to the Internet. Unless I'm missing some benefit to this approach, I'll not be using it.

              Use a strong key, lock to your IP. Very safe. Add Fail2Ban, of course.

              Or add Salt and open/close based on need so it doesn't stay open.

              Or do none of that and just use ZT. Way fewer things to fail.

              1 Reply Last reply Reply Quote 1
              • EddieJenningsE
                EddieJennings @scottalanmiller
                last edited by

                @scottalanmiller said in Remote management of VMs hosted in colocation:

                @eddiejennings said in Remote management of VMs hosted in colocation:

                Allowing an SSH connection to the managementVM from the Internet

                I have not tried this approach yet, and it appears more risky than the Screen Connect approach, since SSH to that VM would be open to the Internet. Unless I'm missing some benefit to this approach, I'll not be using it.

                Use a strong key, lock to your IP. Very safe. Add Fail2Ban, of course.

                Or add Salt and open/close based on need so it doesn't stay open.

                I could see that in a situation where your office has a static IP. For me, I wouldn't be able to lock down the allowed IP, since there's a chance it'll change.

                scottalanmillerS 1 Reply Last reply Reply Quote 0
                • black3dynamiteB
                  black3dynamite
                  last edited by black3dynamite

                  ZeroTier makes it super easy and safe. If you want, you could make a ZeroTier Bridge VM. I would still setup Fail2Ban and use key-based authentication.

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

                    @eddiejennings said in Remote management of VMs hosted in colocation:

                    @scottalanmiller said in Remote management of VMs hosted in colocation:

                    @eddiejennings said in Remote management of VMs hosted in colocation:

                    Allowing an SSH connection to the managementVM from the Internet

                    I have not tried this approach yet, and it appears more risky than the Screen Connect approach, since SSH to that VM would be open to the Internet. Unless I'm missing some benefit to this approach, I'll not be using it.

                    Use a strong key, lock to your IP. Very safe. Add Fail2Ban, of course.

                    Or add Salt and open/close based on need so it doesn't stay open.

                    I could see that in a situation where your office has a static IP. For me, I wouldn't be able to lock down the allowed IP, since there's a chance it'll change.

                    Not really an issue, use Salt to maintain it so not a problem even for dynamic.

                    EddieJenningsE 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller @black3dynamite
                      last edited by

                      @black3dynamite said in Remote management of VMs hosted in colocation:

                      ZeroTier makes it super easy and safe. If you want, you could make a ZeroTier Bridge VM. I would still setup Fail2Ban and use key-based authentication.

                      I'd argue that it doesn't really make it safer. ZT is just key based access, like SSH is. If you are concerned that SSH with keys isn't enough, ZT isn't either. ZT exposes even more should it be compromised, as well. In both cases, being compromised is pretty bad, but one is a lot more limited and able to be limited. If you feel someone can breach your keys with SSH, why not ZT just the same?

                      JaredBuschJ 1 Reply Last reply Reply Quote 0
                      • EddieJenningsE
                        EddieJennings @scottalanmiller
                        last edited by

                        @scottalanmiller said in Remote management of VMs hosted in colocation:

                        @eddiejennings said in Remote management of VMs hosted in colocation:

                        @scottalanmiller said in Remote management of VMs hosted in colocation:

                        @eddiejennings said in Remote management of VMs hosted in colocation:

                        Allowing an SSH connection to the managementVM from the Internet

                        I have not tried this approach yet, and it appears more risky than the Screen Connect approach, since SSH to that VM would be open to the Internet. Unless I'm missing some benefit to this approach, I'll not be using it.

                        Use a strong key, lock to your IP. Very safe. Add Fail2Ban, of course.

                        Or add Salt and open/close based on need so it doesn't stay open.

                        I could see that in a situation where your office has a static IP. For me, I wouldn't be able to lock down the allowed IP, since there's a chance it'll change.

                        Not really an issue, use Salt to maintain it so not a problem even for dynamic.

                        That would be another thread. 🙂 Spin up a Salt VM for maintaining stuff on my host and accessing it from afar.

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

                          @scottalanmiller said in Remote management of VMs hosted in colocation:

                          @black3dynamite said in Remote management of VMs hosted in colocation:

                          ZeroTier makes it super easy and safe. If you want, you could make a ZeroTier Bridge VM. I would still setup Fail2Ban and use key-based authentication.

                          I'd argue that it doesn't really make it safer. ZT is just key based access, like SSH is. If you are concerned that SSH with keys isn't enough, ZT isn't either. ZT exposes even more should it be compromised, as well. In both cases, being compromised is pretty bad, but one is a lot more limited and able to be limited. If you feel someone can breach your keys with SSH, why not ZT just the same?

                          Not true.

                          1. I never said I don't trust SSH key based auth. I said

                          @jaredbusch said in Remote management of VMs hosted in colocation:

                          Keys or not, I will not open SSH to the public internet if I have a simple way around it.

                          Because, while I may trust SSH, we live in reality where unknown vulnerabilities do exist. By not having it open, at all, to a public facing source, you drastically mitigate the attack surface.

                          ZT is access without a public inbound allowance. Someone would have to gain access to your ZT network before being able to then try and get your keys for the SSH session.

                          @scottalanmiller said in Remote management of VMs hosted in colocation:

                          ZT exposes even more should it be compromised, as well

                          This is a strawman. If you want to take up this argument, it would be a separate, yet related, discussion.

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @JaredBusch
                            last edited by

                            @jaredbusch said in Remote management of VMs hosted in colocation:

                            ZT is access without a public inbound allowance. Someone would have to gain access to your ZT network before being able to then try and get your keys for the SSH session.

                            that's my point. How is the access to your ZT network more secure than the keyed access to an SSH port? Both have the risk of vulnerabilities (but nothing has the eyes on it and reviews of OpenSSH, so if that's a concern that makes SSH the clean place to start), and both have access from the outside. Both rely on keys and both have known open ports.

                            DashrenderD 1 Reply Last reply Reply Quote 1
                            • DashrenderD
                              Dashrender @scottalanmiller
                              last edited by

                              @scottalanmiller said in Remote management of VMs hosted in colocation:

                              @jaredbusch said in Remote management of VMs hosted in colocation:

                              ZT is access without a public inbound allowance. Someone would have to gain access to your ZT network before being able to then try and get your keys for the SSH session.

                              that's my point. How is the access to your ZT network more secure than the keyed access to an SSH port? Both have the risk of vulnerabilities (but nothing has the eyes on it and reviews of OpenSSH, so if that's a concern that makes SSH the clean place to start), and both have access from the outside. Both rely on keys and both have known open ports.

                              I was wondering this exact same thing - why is ZT more trusted in this case than SSH?

                              1 Reply Last reply Reply Quote 0
                              • DashrenderD
                                Dashrender
                                last edited by

                                The main thing I see the OP trying to save himself from is his control workstation being pwned. But in reality, I'm not sure there is anything one can do if they are using a pwned machine connect to their colo.

                                If you're using an infested machine - when you use the apps to make that remote session to the colo, be it SSH or SC, the malware can likely grab the needed information and provide it to the hackers.

                                I'm guessing that the Salt idea might give the greatest protection here when combined with the IP lock option that Scott mentioned - but then I ask - how do you securely manage the Saltmaster, where ever it lives?

                                JaredBuschJ EddieJenningsE 2 Replies Last reply Reply Quote 0
                                • JaredBuschJ
                                  JaredBusch @Dashrender
                                  last edited by

                                  @dashrender said in Remote management of VMs hosted in colocation:

                                  The main thing I see the OP trying to save himself from is his control workstation being pwned. But in reality, I'm not sure there is anything one can do if they are using a pwned machine connect to their colo.

                                  Umm, no. Exactly the opposite. The point is the reduced attack surface to the host.

                                  @dashrender said in Remote management of VMs hosted in colocation:

                                  I was wondering this exact same thing - why is ZT more trusted in this case than SSH?

                                  @dashrender said in Remote management of VMs hosted in colocation:

                                  but then I ask - how do you securely manage the Saltmaster, where ever it lives?

                                  Because ZT has account level auth (your password to sign in to your account) and then device auth (approving the device that wants to join the network).

                                  Why create all this overhead for no reason, when ZT already handles it?

                                  Answer? Because Salt is SAM's shiny toy.

                                  scottalanmillerS 1 Reply Last reply Reply Quote 0
                                  • scottalanmillerS
                                    scottalanmiller @JaredBusch
                                    last edited by

                                    @jaredbusch said in Remote management of VMs hosted in colocation:

                                    @dashrender said in Remote management of VMs hosted in colocation:

                                    The main thing I see the OP trying to save himself from is his control workstation being pwned. But in reality, I'm not sure there is anything one can do if they are using a pwned machine connect to their colo.

                                    Umm, no. Exactly the opposite. The point is the reduced attack surface to the host.

                                    @dashrender said in Remote management of VMs hosted in colocation:

                                    I was wondering this exact same thing - why is ZT more trusted in this case than SSH?

                                    @dashrender said in Remote management of VMs hosted in colocation:

                                    but then I ask - how do you securely manage the Saltmaster, where ever it lives?

                                    Because ZT has account level auth (your password to sign in to your account) and then device auth (approving the device that wants to join the network).

                                    Why create all this overhead for no reason, when ZT already handles it?

                                    Answer? Because Salt is SAM's shiny toy.

                                    Pot calling the kettle black there. SSH is the simple, safe, battle tested option. ZT is great and I really like it, but if someone has a toy here, that's it. Yes, it has multiple log in spots, but you just up the key strength to match that and you are at the same security level.

                                    Yes, ZT already handles some of this, but SSH is simple and easy and built in. ZT takes quite a bit more work and is much more complex to do something really simple, it's just not necessary or beneficial when the simple solution handles it.

                                    JaredBuschJ 1 Reply Last reply Reply Quote 0
                                    • EddieJenningsE
                                      EddieJennings @Dashrender
                                      last edited by

                                      @dashrender said in Remote management of VMs hosted in colocation:

                                      The main thing I see the OP trying to save himself from is his control workstation being pwned. But in reality, I'm not sure there is anything one can do if they are using a pwned machine connect to their colo.

                                      The OP's goal is discovering good practices for managing remotely hosted VMs. I identified a potential risk with how I'm doing stuff now as "if my laptop gets compromised, then it's game over for my host, since there is an always-on connection to it via ZT."

                                      DashrenderD scottalanmillerS 2 Replies Last reply Reply Quote 0
                                      • JaredBuschJ
                                        JaredBusch @scottalanmiller
                                        last edited by

                                        @scottalanmiller said in Remote management of VMs hosted in colocation:

                                        @jaredbusch said in Remote management of VMs hosted in colocation:

                                        @dashrender said in Remote management of VMs hosted in colocation:

                                        The main thing I see the OP trying to save himself from is his control workstation being pwned. But in reality, I'm not sure there is anything one can do if they are using a pwned machine connect to their colo.

                                        Umm, no. Exactly the opposite. The point is the reduced attack surface to the host.

                                        @dashrender said in Remote management of VMs hosted in colocation:

                                        I was wondering this exact same thing - why is ZT more trusted in this case than SSH?

                                        @dashrender said in Remote management of VMs hosted in colocation:

                                        but then I ask - how do you securely manage the Saltmaster, where ever it lives?

                                        Because ZT has account level auth (your password to sign in to your account) and then device auth (approving the device that wants to join the network).

                                        Why create all this overhead for no reason, when ZT already handles it?

                                        Answer? Because Salt is SAM's shiny toy.

                                        Pot calling the kettle black there. SSH is the simple, safe, battle tested option. ZT is great and I really like it, but if someone has a toy here, that's it. Yes, it has multiple log in spots, but you just up the key strength to match that and you are at the same security level.

                                        Yes, ZT already handles some of this, but SSH is simple and easy and built in. ZT takes quite a bit more work and is much more complex to do something really simple, it's just not necessary or beneficial when the simple solution handles it.

                                        More work than your gimmicky Salt setup? As if.

                                        1 DashrenderD scottalanmillerS 3 Replies Last reply Reply Quote 0
                                        • 1
                                          1337 @JaredBusch
                                          last edited by

                                          Cyber security is just like physical security. Nothing is 100% secure if it's usable.

                                          Isn't the point of security to delay the attacker long enough so he can be detected? That's why we need layers and some kind of intrusion detection.

                                          Don't know anything about it but ZT sounds like one layer of security. Does it at have 2FA?

                                          JaredBuschJ scottalanmillerS 2 Replies Last reply Reply Quote 0
                                          • DashrenderD
                                            Dashrender @EddieJennings
                                            last edited by

                                            @eddiejennings said in Remote management of VMs hosted in colocation:

                                            @dashrender said in Remote management of VMs hosted in colocation:

                                            The main thing I see the OP trying to save himself from is his control workstation being pwned. But in reality, I'm not sure there is anything one can do if they are using a pwned machine connect to their colo.

                                            The OP's goal is discovering good practices for managing remotely hosted VMs. I identified a potential risk with how I'm doing stuff now as "if my laptop gets compromised, then it's game over for my host, since there is an always-on connection to it via ZT."

                                            I'm not sure the always connected bit matters - does it? If you have an SSH client with the key stored in it - and why wouldn't you - this is likely just as bad as ZT. The attacker can just launch the SSH client on your machine and tada - he's got a connection to your host.

                                            The same might be say able about SC - your laptop is compromised - they still your SC creds - hell, they now use your creds from their own machine to connect to SC.

                                            I'm not seeing anything that offers protection from you using a compromised machine.

                                            dafyreD 1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post