In computing, the SSH File Transfer Protocol is a network protocol that provides file access, file transfer, and file management over any reliable data stream. If you’re working with SFTP servers, the first thing you have to do is set it up and running. Many beginners encounter an error that reads “while setting up the server, not only this error arises while the server is being set up but it has also been seen that a perfectly running server could encounter such problems due to change in some dependencies. Let’s take a deeper dive into this issue and figure out what causes this and how to solve it.
Main causes of this error:
- Expired password
- Modification in the configuration file.
Fixing the error when the password is expired:
Sometimes, while using the SFTP server, the password key could get expired as it remains valid only for a certain period of time if this is the case. Follow these steps and reset the password:
- Switch to SFTP user: Su Test
- Enter the old password for Test
- Press the prompt to enter a new password. Don’t repeat the old password
Fixing the error when some modifications have been made in the configuration file:
If some unknown modifications have been made in the configuration file, then you can follow these steps and undo those changes to make the server up and running again.
First, you have to make some modifications to the configurations file and don’t forget to back it up.
Run the following command in the command prompt :
Next, you have to delete the Subsystem SFTP/usr/libexec/openssh/SFTP – “#” in front of the server. After this, save and exit and restart the SSH. After finishing up, you can reconnect the server and run the tests.