2. Edit /etc/ssh/sshd_config and set PasswordAuthentication to yes.
One way to do this is to enter the command vi /etc/ssh/sshd_config, then scroll down toPasswordAuthentication. Press i to go into text insert mode and change the no to yes. Then press ESC, and type :wq and press enter to save and quit.
3. Enter the command /etc/init.d/sshd reload. (for Ubuntu, enter the command reload ssh)
4. Set your password if you haven’t already, with the passwd command.
Note: This was tested with SUSE Linux. Directory and file names may be slightly different depending on your flavor of Linux.