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

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:freebsd:enable_ssh_on_freenas_jail [2016/02/14 16:26] 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.
  
-Make sure root password is set: +First you need the ID number of the jail. You can get this from the GUI or by running... 
- +  jls 
-<code> +   
-passwd +Then run the following (replacing ## with the jail ID) to begin talking to the jail instead. 
-</code> +  jexec ## tcsh 
- +   
-Update pkg database: +Send ''exit'' to stop talking to the jail and back to root machine.
- +
-<code> +
-pkg update +
-</code> +
- +
-Install nano text editor: +
- +
-<code> +
-pkg install nano +
-</code> +
- +
-Open ssh daemon config file with nano: +
- +
-<code> +
-nano /etc/ssh/sshd_config +
-</code> +
- +
-Yop can <mono>ctrl + shift + w</mono> to find text +
- +
-Un-hash and edit the following values: +
-  * PermitRootLogin yes +
-  * PasswordAuthentication yes +
- +
-<mono>ctrl + shift + x</mono> to exit nano +
- +
-Press <mono>Y</mono> to save changed +
- +
-Press <mono>Enter</mono> to confirm write +
- +
-Enable the SSH daemon: +
- +
-<code> +
-sysrc sshd_enable=yes +
-</code> +
- +
-Start SSH daemon: +
-<code> +
-service sshd start +
-</code>+
wiki/freebsd/enable_ssh_on_freenas_jail.txt · Last modified: 2022/01/04 10:28 by matt