User Tools

Site Tools


wiki:freebsd:enable_ssh_on_freenas_jail

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:freebsd:enable_ssh_on_freenas_jail [2016/02/14 16:17] – created mattwiki:freebsd:enable_ssh_on_freenas_jail [2022/01/04 10:28] (current) matt
Line 1: Line 1:
 ====== Enable SSH on FreeNAS Jail ====== ====== Enable SSH on FreeNAS Jail ======
  
-These instructions will work on any FreeBSD install, but you don't necessarily need nano to accomplish it. On a jail on FreeNAS you need nano because the keyboard combinations required to edit the config files cannot be executed on the web gui console.+The proper way to SSH into TrueNAS jail now is to SSH/WebGUISHELL into the TrueNAS box proper and switch to the jail.
  
-<code> +First you need the ID number of the jail. You can get this from the GUI or by running... 
-passwd (set password) +  jls 
-pkg update (update pkg database) +   
-pkg install nano (install nano text editor so you can edit in the browser console) +Then run the following (replacing ## with the jail ID) to begin talking to the jail instead. 
-nano /etc/ssh/sshd_config (edit ssh daemon config with nano) +  jexec ## tcsh 
-<ctrl+shift+w> to find text +   
-#change the following fields to listed values and un-hash +Send ''exit'' to stop talking to the jail and back to root machine.
-   "PermitRootLogin yes" +
-   "PasswordAuthentication yes" +
-<ctrl+shift+x> to exit +
-<Y> then <Enter> to save +
-sysrc sshd_enable=yes (enable ssh) +
-service sshd start +
-</code>+
wiki/freebsd/enable_ssh_on_freenas_jail.1455484652.txt.gz · Last modified: 2016/09/13 15:52 (external edit)