After LXC package installation configure the lxc /etc/init/lxc-net.conf to look like
env USE_LXC_BRIDGE="true"
Restart lxc-net service.
# /etc/init.d/lxc-net restart
Start the container
# lxc start <container-name>
After entering into the console of the container. Find the IP of the container.
In host machine use the following command to create the tunnel listening on the port 9001
# ssh -L 0.0.0.0:9001:<ip-of-the-container>:22 localhost
6) Now connect to the tunnel using
$ ssh -p 9001 <userid>@<ip-of-the-host>
Great website. Lots of useful information here. I am sending it to some buddies ans additionally sharing
in delicious. And of course, thank you for your effort!