Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have setup Debian Squeeze on an old laptop to serve as a testbed. I have installed OpenSSH and edited /etc/ssh/sshd_config to use ssh keys and disallow password authentication.

I am able, however, to login with a password via On entering the password I get:

Connecting as lemmy@*myipaddress* on port 5001...                             
/root/.ssh/known_hosts updated.                                                 
Original contents retained as /root/.ssh/known_hosts.old                        
lemmy@my*ipaddress*'s password:                                               
Linux saturn 2.6.32-5-686 #1 SMP Sun May 6 04:01:19 UTC 2012 i686               

The programs included with the Debian GNU/Linux system are free software;       
the exact distribution terms for each program are described in the              
individual files in /usr/share/doc/*/copyright.                                 

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent               
permitted by applicable law.                                                    
Last login: Sun Aug 26 11:20:12 2012 from                          

How is this possible?

share|improve this question
Did you reload/restart ssh after modifying configuration? – user130370 Aug 26 '12 at 12:31
@Andy: Can you post your sshd_config file or at least the relevant part? – Khaled Aug 26 '12 at 12:34
Thank you @Eric and Khaled. After restarting ssh it works as intended. – Andy Aug 26 '12 at 12:44

As a general rule :

Don't forget to restart/reload/stop start the service after modifying the configuration files.

Also, you should always perform manual backups of the configurations file before modifying them : It shortens the roll back when somethings goes wrong.

share|improve this answer

Your Answer


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.