Key-Based SSH Logins With PuTTY problem

Discussion in 'HOWTO-Related Questions' started by laptop_user, Apr 17, 2014.

  1. laptop_user

    laptop_user Member

    Hi, I'm following tutorial from here: http://www.howtoforge.com/ssh_key_based_logins_putty_p4

    This thing works great thank you very much. However it is said in the tutorial:
    I followed the tutorial verbatim but one problem is I can still login with normal root and password. I can now login via 2 method which is using Key-Based and normal login.

    How to forced the server to accept only key based login? I also edit this sshd_config file:

    Code:
    [...]
    Protocol 2
    PasswordAuthentication no
    UsePAM no
    [...]
    but unfortunately there's no change?? Any help is appreciated. Thank you.
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Did you restarted the service of SSH after changing the sshd_config file?

    Br//
    Srijan
     
  3. laptop_user

    laptop_user Member

    I did but nothing change. Still the same.
     
  4. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Please elaborate more with details kie your OS.

    & paste the syslog or messages which ever is appropriate.

    Br//
    Srijan
     
  5. laptop_user

    laptop_user Member

    Im using debian wheezy. Any particular thing to look for in my log file??
     
  6. laptop_user

    laptop_user Member

    OK found the culprit. I change the #PasswordAuthentication to no but I dont comment out the line. Remove the default hash and it works:

    Code:
    PasswordAuthentication no
    Thanks srijan for trying to help me :)
     

Share This Page