title: Setting Up SFTP Service with Public Key Autentication and PGP
body: <p>My final goal is to create a SFTP server coupled with a PGP authentication as described here : <a href="https://xcesstek.wordpress.com/2012/10/21/setting-up-sftp-service-with-public-key-autentication-and-pgp-support/" rel="nofollow noreferrer">SFTP+PGP</a></p>
  
  <p>Actually i succeeded to create an user called <strong>sftp_user</strong> who can connect to his own  directory on my server via SFTP with his username and password.
  (I followed this great procedure <a href="https://memo-linux.com/mettre-en-place-un-serveur-sftp-sous-debian-8/" rel="nofollow noreferrer">Setting up SFTP</a> )</p>
  
  <p>Now, i want to allow him to connect with a key file generated by PGP without using a password. </p>
  
  <p>I've already generated a PGP key but i can't assign it to my user <strong>sftp_user</strong>.</p>
  
  <p>So what is the procedure for achieve this ?</p>
  
  <p>For information, i'm using a VPS on Debian Stretch 9.2. I can only connect in SSH for setting up the environment </p>