title: how to use Putty （SSH ）to login the linux in Windows
body: <p>I used the Putty to generated the private key and public key 。</p>
  <ol>
  <li><p>private key save in the Windows  C：\ssh</p>
  </li>
  <li><p>I was also touch a new file which is called authorized_keys in Linux that
  Path is : /home/su/.ssh/</p>
  </li>
  </ol>
  <p><a href="https://i.stack.imgur.com/x26iw.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/x26iw.jpg" alt="enter image description here" /></a></p>
  <p>anyway ,I have change the file sshd_config (===&gt;sudo <strong>vim /etc/ssh/sshd_config</strong> )</p>
  <pre><code>RSAAuthentication yes
  PubkeyAuthentication yes
  #AuthorizedKeysFile     %h/.ssh/authorized_keys
  AuthorizedKeysFile      /home/su/.ssh/authorized_keys
  </code></pre>
  <p>when I finish set up putty and try to login
  it shows me that server refused our key
  <a href="https://i.stack.imgur.com/TI4zS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TI4zS.jpg" alt="enter image description here" /></a></p>
  <p>and I aslo print out the log (==&gt;<strong>tail -f /var/log/auth.log</strong>)
  there is nothing log about the authorized key login action~~~</p>
  <p><a href="https://i.stack.imgur.com/9K0Is.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/9K0Is.jpg" alt="enter image description here" /></a></p>
  <p>does anybody know why?  which part do I have forget to set????</p>