Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I've been using private-public key logins on my home server for several years but I've always left PasswordAuthentication yes so that if anything untoward happened I could still login.
Of course the likelihood of anything untoward happening is hugely increased by leaving password auth enabled.

So if I set PasswordAuthentication no I obviously won't be able to login to SSH using a username/password.
But can I still login to the machine locally using a system username/password?

I'm assuming yes, since logging in locally to the physical machine would have nothing to do with SSH. But before I go ahead and disable password auth I wanted to make 100% sure.

share|improve this question
add comment

2 Answers

up vote 4 down vote accepted

Yes you will be able to locally login using an username/password since this is the configuration for the sshserver only and doesn't affect the local login procedure.

share|improve this answer
    
Wow 2 answers in the same minute, not sure which was first. Settled by a tie break, there are more words in this answer. Upvoted both. –  benbradley Sep 13 '12 at 12:31
2  
You can login locally even if you don't have ssh daemon. –  Khaled Sep 13 '12 at 12:31
add comment

You are correct in your assumption.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.