さっきSSHログインできなかったのはWindows側のFWとやっぱりBSDはrootのリモートログインをデフォルトで許してないようだ。そういうわけでwheelグループでユーザーを作成してみる。
コマンドはadduserです。これがRed Hat Linuxだとuseraddです。
# adduser
Username: hogehoge
Fullname:
Uid (Leave empty for default):
Login group [hogehoge]: wheel
Login is wheel. Invite hogehoge into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin)[sh]: tcsh
Home directory [/home/hogehoge]:
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 : hogehoge
Password : *****
Full Name :
Uid : 1001
Class :
Groups : wheel
Home : /home/hogehoge
Shell : /bin/tcsh
Locked : no
OK? (yes/no): yes
adduser: INFO: Successfully added (hogehoge) to the user database.
Add another user? (yes/no):no
Goodbye!

コメントする