Dockersh like option with LXC

Came across this which provides “A shell which places users into individual docker containers”. Though this project is deprecated, I’m wondering whether something like this already available with LXD? I would like replace /etc/passwd file entry with something like lxdsh to create isolated environment.

There are several variations for this. Ideally, it would be great to do the following. You ssh to the bastion/jump host, and then you are diverted to a LXD container that is just for you, with a name being your username (or some other unique name).

$ ssh

You can do this with in SSH with ProxyCommand or ProxyJump. It requires a bit of setup in ~/.ssh/config but it should work.