由于在 PowerShell 和 CMD 中运行都会产生各种乱码(比如 ee 命令,或按 TAB 键)。
但是该镜像默认未配置 ssh 与普通用户,直接 ssh 是无法连接的。
先创建一个普通用户(注意加入 wheel 组):
root@freebsd:~ # adduser
Username: ykla
Full name:
Uid (Leave empty for default):
Login group [ykla]:
Login group is ykla. Invite ykla into other groups? []: wheel # 请在此处输入 wheel,否则无法 su
Login class [default]:
Shell (sh csh tcsh nologin) [sh]:
Home directory [/home/ykla]:
Home directory permissions (Leave empty for default):
Enable ZFS encryption? (yes/no) [no]: 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 : ykla
Password : *****
Full Name :
Uid : 1001
ZFS dataset : zroot/home/ykla
Class :
Groups : ykla wheel
Home : /home/ykla
Home Mode :
Shell : /bin/sh
Locked : no
OK? (yes/no) [yes]:
adduser: INFO: Successfully created ZFS dataset (zroot/home/ykla).
adduser: INFO: Successfully added (ykla) to the user database.
Add another user? (yes/no) [no]:
Goodbye!