Users cannot connect to the server over SSH on AWS: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).




  • Avatar

    This article makes no sense.... No need to create a ssh keypair for every user which needs SFTP.....The idea was that Plesk takes cares of this....unfortunately not the case.

    Some things good to know but Plesk does not explain in any article:

    • FTP access is not allowed per se. Dont even try that option. FTP is insecure and its disabled.
    • SFTP is the protocol to be used.

    I resolved this problem editing a SSHconfig files:

    1. Edit the /etc/ssh/sshd_config file
    2. Change PasswordAuthentication and ChallengeResponseAuthentication to yes
    3. Then scroll down until you see this line:
    4. Subsystem sftp /usr/lib/openssh/sftp-server
    5. Comment out the above line,  underneath it write this:
    6. Subsystem sftp internal-sftp
    7. Restart ssh /etc/init.d/ssh restart.
    8. Filezilla: set protocol to SFTP, set user and password previously configured in Plesk web interface (FTP accounts of your domains)
    9. No ssh keys are required for this connections.
  • Avatar
    Bulat Tsydenov

    @Jmojico Hi! I would like you to know that Plesk does not manage and does not configure SFTP at all. SFTP is not supported by Plesk.

  • Avatar

    You should really re-check that.

    Im using Plesk and this settings are working for me:

    In fact, it is the ONLY setup that it actually worked. Of course, after some hours of researching and trying settings.

    As a matter of fact, DEFAULT settings did not worked at all.


  • Avatar
    Bulat Tsydenov

    @Jmojico, The fact that Plesk does not support SFTP does not mean that SFTP is not supposed to be working at all on the sever with Plesk. I just want to say Plesk does not make any changes in ssh configuration required for SFTP to function properly.

Please sign in to leave a comment.

Have more questions? Submit a request