Remix.run Logo
KomoD 15 hours ago

Temporary ssh containers, I just want to ssh (some id)@(container host), spin up a lxc container or firecracker microvm, it attaches to it.

When I exit the ssh session, it terminates (or "pauses").

I've wanted to make it for a while but never got around to it.

cik 4 hours ago | parent | next [-]

Unless I'm missing it, the linuxserver have a container you can use. There's also containerssh (which I use all the time)

https://hub.docker.com/r/linuxserver/openssh-server

https://hub.docker.com/r/containerssh/containerssh

ValtteriL 7 hours ago | parent | prev [-]

You can get such disposable shell in k8s with a command like:

kubectl run -i --tty --rm debug --image=busybox --restart=Never -- sh

Doesn't use ssh though.