By default, SSH in FreeBSD is configured not to allow login using password. In order to enable the login using password the following steps can be followed:
- Edit the /etc/ssh /sshd_config file:
Uncomment and edit the lines as below to allow all the users other than root to login using password
PasswordAuthentication yes
- In order to allow root to login using password in ssh, uncomment the line and edit as below:
PermitRootLogin yes
- Save the file and restart ssh service using the following command
# /etc/rc.d/sshd restart
- Now try logging root and other users using password