I'm using Ubuntu 18.04 and today I installed sftp server using openssh for my server. I followed the instructions on the internet, everything is good, they said I have to add this codes to sshd_config file:
Match group sftp ChrootDirectory /home X11Forwarding no AllowTcpForwarding no ForceCommand internal-sftp PubkeyAuthentication yes
I did it and the sever can't connect with error from filezilla :"The software cause connection abort. Could not connect to server". Tried in another computer with another version of filezilla and the result is same. But, when I added that code into file ssh_config and deleted from sshd_config. The connection was work perfectly. Anyone here know why?