Freebsd – How to start a shell inside a jail on FreeBSD

freebsdjailshellunix

I have access to a a previously set up FreeBSD box with a number of jails on it. One of the jails is an SQL server, and does not have ssh enabled on it.

How can I gain access to a shell on that jail from the host machine? (I have root rights on it.)

Best Answer

First run jls to find out needed jail ID, then jexec ${jailID} /bin/tcsh (${jailID} is an ID of your jail)