This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:freebsd:enable_ssh_on_freenas_jail [2016/02/14 21:17] matt created |
wiki:freebsd:enable_ssh_on_freenas_jail [2016/02/14 21:42] (current) matt |
||
---|---|---|---|
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+w> to find text | + | |
- | #change the following fields to listed values and un-hash | + | <code> |
- | "PermitRootLogin yes" | + | pkg update |
- | "PasswordAuthentication yes" | + | </code> |
- | <ctrl+shift+x> to 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> |