If you’re using WordPress SSH SFTP Updater plugin, and you got the error “Private Key is Incorrect for use”… even when the keys are correct, check the following:
[cc lang=”bash”]nano /etc/ssh/sshd_config[/cc]
If there is a “ForceCommand internal-sftp” directive, somewhere, in sshd’s config, try disabling it. That was what was causing me issues:
I had an sftp-only user, and the WP plugin doesn’t support that!.