Solved

PasswordAuthentication in sshd_config

Posted on 2012-04-11
2
462 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Coding C# in Linux 8 69
Retreiving column names in Windows but not in Unix 11 47
linux 13 50
Latest thoughts on C# utilizing Mono on Linux vs .NET on Windows? 5 29
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.

810 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