BSD · FreeBSD · OpenSSH · sshd

Enabling SSH password login in FreeBSD 8.x and FreeBSD 9.x

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
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s