4/5/2023 0 Comments Create ssh tunnelImportant: SSH daemons in the containers here are solely for educational purposes - containers in this post are meant to represent full-blown "machines" with SSH clients and servers on them. If you don't have one, generating it is as simple as just ssh-keygen on the host. However, running the below examples as-is with Docker Desktop won't be possible because the ability to access the machines containers by their IPs is assumed.Īlternatively, the labs can be done with Lima (QEMU + nerdctl + containerd + BuildKit), but don't forget to limactl shell bash first.Įvery example requires a valid passphrase-less key pair on the host that is then mounted into the containers to simplify access management. In theory, any Linux box with Docker Engine on it should do. That's why I ended up using just a single vagrant VM with Docker on it. However, I'm too lazy to spin up full-blown instances, especially when containers can be used instead. SSH Tunnels are about connecting hosts over the network, so every lab below expectedly involves multiple "machines". Should it be a Local or a Remote tunnel? What are the flags? Is it a local_port:remote_port or the other way around? So, I decided to finally wrap my head around it, and it resulted in a series of labs and a visual cheat sheet □
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |