liximomo / vscode-sftp

Super fast sftp/ftp extension for VS Code
MIT License
1.5k stars 257 forks source link

550 SSL/TLS required on the control channel #872

Closed contactjavas closed 3 years ago

contactjavas commented 3 years ago

Do you read the FAQ?

Describe the bug In vscode output tab, I got these messages:

[01-02 10:50:18] [info] config at e:\www\memberpress {"remotePath":"/","uploadOnSave":true,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"ftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"name":"memberpress.hypenusa.com","host":"149.28.153.167","port":21,"username":"******","password":"******"}
[01-02 10:50:18] [debug] < '220 ProFTPD Server (Debian) [::ffff:149.28.153.167]\r\n'
[01-02 10:50:18] [debug] > USER memberpress
[01-02 10:50:18] [debug] < '550 SSL/TLS required on the control channel\r\n'

Previously, I got the sampe problem with Filezilla. But now, the Filezilla can access the FTP and the directories. But vscode-sftp still not able to list the directory and I got messages above.

I sometimes use vscode-sftp to work on shared hosting or vps with cPanel which were fine.

To Reproduce I could share with you the ftp username & password to try it directly. Please let me know if you would like to try.

Expected behavior Since now Filezilla can access it well, I think vscode-sftp should be able to access it too.

Desktop (please complete the following information):

Extension Logs from Startup - required

[01-02 10:50:18] [info] config at e:\www\memberpress {"remotePath":"/","uploadOnSave":true,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"ftp","connectTimeout":10000,"interactiveAuth":false,"secure":false,"remoteTimeOffsetInHours":0,"name":"memberpress.hypenusa.com","host":"149.28.153.167","port":21,"username":"******","password":"******"}
[01-02 10:50:18] [debug] < '220 ProFTPD Server (Debian) [::ffff:149.28.153.167]\r\n'
[01-02 10:50:18] [debug] > USER memberpress
[01-02 10:50:18] [debug] < '550 SSL/TLS required on the control channel\r\n'
lupustom commented 3 years ago

You should put "secure": true in your config, it is currently either not set or false

ghost commented 3 years ago

@contactjavas let me know if @lupustom's solution solves your issue.

contactjavas commented 3 years ago

Hi @thompsbrian , Hi @lupustom , apologize for not giving any news for long time.

After providing "secure": true to the config file, the output tab doesn't give me error, and here is the message:

[04-07 11:19:06] [debug] < '220 ProFTPD Server (Debian) [::ffff:149.28.137.7]\r\n'
[04-07 11:19:06] [debug] > AUTH TLS
[04-07 11:19:06] [debug] < '234 AUTH TLS successful\r\n'

But VSCode notification shown an error message: self signed certificate. And of course, the list of the files weren't shown. On the other side, I can connect through FileZilla and the list of the files were shown successfully.

contactjavas commented 3 years ago

Alright, based on issue #210 , as @liximomo said, adding "secureOptions": {"rejectUnauthorized": false} to the config file fixes my issue.

So if someone else is experiencing this issue, try to add these lines to your config:

"secure": true,
"secureOptions": {"rejectUnauthorized": false}

Thank you Guys! 😊