error: subsystem: cannot stat /usr/libexec/openssh/sftp-server: No such file or directory subsystem request for sftp failed, subsystem not found

error: subsystem: cannot stat /usr/libexec/openssh/sftp-server: No such file or directory
subsystem request for sftp failed, subsystem not found

Date: 03-07-2021

When i try to connect server via sftp, i get above error. Follow the below steps to solve the error.

Step 1: Login to the server via ssh terminal.

Step 2: You need to make some changes in the SSHD configuration file by using below command.
# sudo vi /etc/ssh/sshd_config

Enter "Subsystem sftp internal-sftp" instead of "Subsystem sftp /usr/libexec/openssh/sftp-server"in the above config file and save and exit.

Step 3: Restart the SSH service for new changes to take effect by using below command.
# sudo systemctl restart sshd

Now you can use SFTP without error.

Thank you!

admin

Our team has expertise across software and web development, WordPress, e-commerce, mobile applications, UI/UX, cloud and infrastructure, DevOps, CI/CD, API integration, security, testing, automation, and technical support. The team also works with AI-based software solutions, LLMs, AI workflows, AI agents, and intelligent application development to help businesses automate processes and build smarter digital solutions. We focus on developing, deploying, maintaining, and optimising secure, scalable, and reliable technology solutions while helping businesses adopt modern technologies and drive digital transformation.

Leave a Reply

Scroll to Top