Why Do I Fail to Connect to a Linux ECS Using WinSCP?
Symptom
Connecting to a Linux ECS using WinSCP fails, while using SSH tools like Xshell succeeds.
Root Cause
If you can connect to a Linux ECS using SSH tools, the SSH tools run properly. Check the SFTP configuration file because WinSCP allows you to connect your Linux ECS via SFTP protocol.
Run the following command to view the /etc/ssh/sshd_config file:
vi /etc/ssh/sshd_config
Check the SFTP configuration and the configuration file is /usr/libexec/openssh/sftp-server.
If the SFTP configuration file does not exist or the file permission is not 755, connecting to a Linux ECS using WinSCP will fail.
Solution
- If the SFTP configuration file does not exist, you can transfer the file from an ECS that runs properly to your Linux ECS using SCP or other file transfer tools.
- If the file permission is not 755, you can run the following command to change the file permission to 755:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.