Threads for gaocegege

  1. 2

    I think this is the write-up where the author explains how he developed it: https://debugged.it/blog/ssh-direct-to-docker/

    Have not read it yet, but looks interesting, because I was curious how you implement a SSH-server replacement.

    1. 1

      golang’s ssh package supports that. It is easy to implement a new sshd alternative.

      1. 1

        Here is a tiny implementation https://github.com/ContainerSSH/MiniContainerSSH

        It’s a super barebones implementation of ContainerSSH to demonstrate how it works

      1. 2

        I’m just using shell.nix. A nice explanation of the benefits over shell.nix/nix-shell would be welcome.

        1. 1

          The benefit to me is that there is no need to learn nix :-) /cc @lagoja

          1. 1

            But learning Nix is a skill that can obsolesce most other build systems, containers, etc. and is a skill probably worth learning if that interests you.

            1. 1

              You should also learn how to darn socks, and make your own toothpaste. Two skills you can use until you die of old age.

              1. 1

                Yeah, I agree. It is worth learning for me. But maybe not for everyone. It is why I like devbox.