Page 1 of 1
SSH to my new Slim Jail
Posted: 13 Jul 2013 19:39
by CaptSammy
I got my jail up and running, and according to the extension it is running well, how do I SSH to it? I can SSH into the NAS4Free box with my normal user now (thanks to IRC help), but I cant seem to log into the Jail. Is there a default user to use? Do I need to enable SSH in the jail?
I assume after SSHing into the Jail I can install SABNZB.
Appreciate any help.
Thanks and sorry for the noob question.
Re: SSH to my new Slim Jail
Posted: 13 Jul 2013 20:09
by raulfg3
first you need to know your jail ID using jls, next you can log using jexec number csh, see an example:
Code: Select all
Welcome to NAS4Free!
rnas: ~ # jls
JID IP Address Hostname Path
1 192.168.1.201 kissdx.local /mnt/NAS-A/Jail/kissdx
2 192.168.1.202 minidlna.local /mnt/NAS-A/Jail/minidlna
3 192.168.1.204 www.local /mnt/NAS-A/Jail/www
4 192.168.1.205 serviio.local /mnt/NAS-A/Jail/serviio
rnas: ~ # jexec 4 csh
root@serviio:/ #
notice how change promt from
rnas: ~ # to
root@serviio:/ #
Re: SSH to my new Slim Jail
Posted: 13 Jul 2013 23:16
by alexey123
Hello, Raul
If you add to /etc/rc.conf (or /etc/rc.conf.local ) variable such
jail_{jailname}_flags="-n {jailname}"
you can call your jail with jailname as
EXAMPLE:

Re: SSH to my new Slim Jail
Posted: 13 Jul 2013 23:57
by alexey123
CaptSammy
If you want enable SSH server into jail you need in first define NAS4Free main ssh server for listen only NAS4Free main IP.
1. Add to
Extra options windows value
ListenAddress Your_NAS_Main_IP
2. Edit config file file into jail
/etc/ssh/sshd_config as you want. You can use as example NAS4free sshd_config file, placed into
/var/etc/ssh/ folder.
My jail sshd_config not allow connect as root.
3. connect over SSH console with
NAS4Free server, run jail and enter into
4 Add user for jail from wheel group.
5. Add to
jail's /etc/rc.conf
and run daemon as
. If server configured properly, just
6. Connect over SSH with your jail