What I would suggest first is using a copy of the default untouched sshd_config.
<code>nano +76 sshd_config</code>
change the line
<code>Subsystem sftp /usr/lib/openssh/sftp-server</code>
with
<code>Subsystem sftp internal-sftp</code>
then scroll to the bottom of the file and after <code>UsePAM yes</code> add
<code>ForceCommand internal-sftp</code>
You should be able to use filezilla etc to log in using any account including root (so don't do this on a live in the wild server). From there you can troubleshoot to see which of your modifications is causing a problem.
↧