Solved

PasswordAuthentication in sshd_config

Posted on 2012-04-11
2
466 Views
Last Modified: 2012-04-12
I can't get ssh working with no password.  Even though I believe I setup my public and private keys correctly, ssh still prompts for password.

Does PasswordAuthentication in sshd_config really matter?  I noticed in my sshd_config, this parameter is not set at all which means it defaults to yes.  Could this be the cause of my ssh problem?
0
Comment
Question by:lcor
2 Comments
 
LVL 17

Assisted Solution

by:Anuroopsundd
Anuroopsundd earned 250 total points
ID: 37834270
PasswordAuthentication yes
The option PasswordAuthentication specifies whether we should use password-based authentication. For strong security, this option must always be set to yes.

PermitEmptyPasswords no
The option PermitEmptyPasswords specifies whether the server allows logging in to accounts with a null password. If you intend to use the scp utility to make automatic backups over the network, you must set this option to yes


http://www.faqs.org/docs/securing/chap15sec122.html
0
 
LVL 11

Accepted Solution

by:
legolasthehansy earned 250 total points
ID: 37834322
It might be an error in the way your keys are setup.
See if your .ssh directory has 700 permissions and owned by the right user
See if your authorized_keys file has 600 permissions and owned by the right user
And see if the keys are correct in your authorized_keys file
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded‚Ķ
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question