quote
Connection closed by server with exitcode 126
The reason is:
"/etc/ssh/sshd_config"
The sftp referenced in the sshd configuration file does not exist.
Modify the relevant configuration in the configuration file and use internal-sftp instead
#Subsystem sftp /usr/local/ssh/libexec/sftp-server Subsystem sftp internal-sftp