How to get sshd started in a new jail?

balanga

Patron
Joined
Jul 10, 2014
Messages
271
I've just created a new jail, and can't work out how to gain access to it. AFAICR I was always able to ssh into new jails.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
What I've always done is to ssh into the FreeNAS box, and then iocage console <jailname> (or jexec # $SHELL for Warden jails, which I haven't used in quite some time). But you should be able to do sysrc sshd_enable=YES followed by service sshd start.
 
Joined
Jul 10, 2016
Messages
521
What I've always done is to ssh into the FreeNAS box, and then iocage console <jailname>
Also, in the "Jails" section of the Web UI, each running jail has a "Shell" button that drops you in a (very rudimentary) shell. Not the best tool, but sufficient to configure proper SSH access. This process is outlined in the section Accessing a Jail Using SSH in the manual.
 
Top