Solved

PasswordAuthentication in sshd_config

Posted on 2012-04-11
2
446 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
Comment Utility
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
Comment Utility
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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now