Edit the rc.conf file to enable SSH:
# vi /etc/rc.conf
set sshd_enable=“YES”
Then save (:wq)
Start the SSHd:
# service sshd start
(keys etc. will be generated)
Create a user so I dont have to enable root login, make sure to add wheel as an additional group.
Also need to create the /home folder as it doesnt exist:
# mkdir /home
# adduser
Username: brendan
Full name: Brendan
Uid (Leave empty for default):
Login group [brendan]:
Login group is brendan. Invite brendan into other groups? []: wheel
Login class [default]:
Shell (sh csh tcsh nologin) [sh]:
Home directory [/home/brendan]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username : brendan
Password : *****
Full Name : Brendan
Uid : 1001
Class :
Groups : brendan wheel
Home : /home/brendan
Home Mode :
Shell : /bin/sh
Locked : no
OK? (yes/no): yes
adduser: INFO: Successfully added (brendan) to the user database.
Add another user? (yes/no): no
Goodbye!
Done. I can now SSH direct to the jail.
No comments:
Post a Comment