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
Next revisionBoth sides next revision
wiki:freebsd:enable_ssh_on_freenas_jail [2016/02/14 16:17] – created mattwiki:freebsd:enable_ssh_on_freenas_jail [2016/09/13 15:53] – external edit 127.0.0.1
Line 2: Line 2:
  
 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. 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.
 +
 +Make sure root password is set:
  
 <code> <code>
-passwd (set password) +passwd 
-pkg update (update pkg database) +</code> 
-pkg install nano (install nano text editor so you can edit in the browser console) + 
-nano /etc/ssh/sshd_config (edit ssh daemon config with nano) +Update pkg database
-<ctrl+shift+wto find text + 
-#change the following fields to listed values and un-hash +<code> 
-   "PermitRootLogin yes" +pkg update 
-   "PasswordAuthentication yes" +</code> 
-<ctrl+shift+xto exit + 
-<Y> then <Enter> to save +Install nano text editor: 
-sysrc sshd_enable=yes (enable ssh)+ 
 +<code> 
 +pkg install nano 
 +</code> 
 + 
 +Open ssh daemon config file with nano
 + 
 +<code> 
 +nano /etc/ssh/sshd_config 
 +</code> 
 + 
 +You can ''ctrl + shift + w'' to find text 
 + 
 +Un-hash and edit the following values: 
 +  PermitRootLogin yes 
 +  PasswordAuthentication yes 
 + 
 +''ctrl + shift + x'' to exit nano 
 + 
 +Press ''Y'' to save changes 
 + 
 +Press ''Enter'' to confirm write 
 + 
 +Enable the SSH daemon: 
 + 
 +<code> 
 +sysrc sshd_enable=yes 
 +</code> 
 + 
 +Start SSH daemon: 
 +<code>
 service sshd start service sshd start
 </code> </code>
wiki/freebsd/enable_ssh_on_freenas_jail.txt · Last modified: 2022/01/04 10:28 by matt