liximomo / vscode-sftp

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

Cant connect to FTP #1007

Open karmeljuk opened 1 year ago

karmeljuk commented 1 year ago

Do you read the FAQ?

Describe the bug I want to connect to server with FTPES to FTP. In Filezilla everything works fine. Here is my config:

{
    "name": "name",
    "host": "host.com",
    "protocol": "ftp",
    "port": 21,
    "passive": true,
    "username": "name",
    "password": "***",
    "remotePath": "/",
    "uploadOnSave": true
}

In this case I see an error: Sorry, cleartext sessions and weak ciphers are not accepted on this server. Please reconnect using TLS security mechanisms.

If I set ftpes://host.com I see another error: getaddrinfo ENOTFOUND ftpes://host.com

Expected behavior I want to connect to the FTP

Desktop (please complete the following information):

Extension Logs from Startup - required


[09-05 17:04:19] [debug] register command "Config" from "./commandConfig.ts"
[09-05 17:04:19] [debug] register command "List Active Folder" from "./commandListActiveFolder.ts"
[09-05 17:04:19] [debug] register command "Open Ssh Connection" from "./commandOpenSshConnection.ts"
[09-05 17:04:19] [debug] register command "Set Profile" from "./commandSetProfile.ts"
[09-05 17:04:19] [debug] register command "Toggle Output Panel" from "./commandToggleOutputPanel.ts"
[09-05 17:04:19] [debug] register command "Upload Changed Files" from "./commandUploadChangedFiles.ts"
[09-05 17:04:19] [debug] register command "Create File" from "./fileCommandCreateFile.ts"
[09-05 17:04:19] [debug] register command "Create Folder" from "./fileCommandCreateFolder.ts"
[09-05 17:04:19] [debug] register command "Delete Remote" from "./fileCommandDeleteRemote.ts"
[09-05 17:04:19] [debug] register command "Diff" from "./fileCommandDiff.ts"
[09-05 17:04:19] [debug] register command "Diff Active File" from "./fileCommandDiffActiveFile.ts"
[09-05 17:04:19] [debug] register command "Download" from "./fileCommandDownload.ts"
[09-05 17:04:19] [debug] register command "Download Active File" from "./fileCommandDownloadActiveFile.ts"
[09-05 17:04:19] [debug] register command "Download Active Folder" from "./fileCommandDownloadActiveFolder.ts"
[09-05 17:04:19] [debug] register command "Download File" from "./fileCommandDownloadFile.ts"
[09-05 17:04:19] [debug] register command "Download Folder" from "./fileCommandDownloadFolder.ts"
[09-05 17:04:19] [debug] register command "Download Force" from "./fileCommandDownloadForce.ts"
[09-05 17:04:19] [debug] register command "Download Project" from "./fileCommandDownloadProject.ts"
[09-05 17:04:19] [debug] register command "Edit In Local" from "./fileCommandEditInLocal.ts"
[09-05 17:04:19] [debug] register command "List" from "./fileCommandList.ts"
[09-05 17:04:19] [debug] register command "List All" from "./fileCommandListAll.ts"
[09-05 17:04:19] [debug] register command "Reveal In Explorer" from "./fileCommandRevealInExplorer.ts"
[09-05 17:04:19] [debug] register command "Reveal In Remote Explorer" from "./fileCommandRevealInRemoteExplorer.ts"
[09-05 17:04:19] [debug] register command "Sync Both Directions" from "./fileCommandSyncBothDirections.ts"
[09-05 17:04:19] [debug] register command "Sync Local To Remote" from "./fileCommandSyncLocalToRemote.ts"
[09-05 17:04:19] [debug] register command "Sync Remote To Local" from "./fileCommandSyncRemoteToLocal.ts"
[09-05 17:04:19] [debug] register command "Upload" from "./fileCommandUpload.ts"
[09-05 17:04:19] [debug] register command "Upload Active File" from "./fileCommandUploadActiveFile.ts"
[09-05 17:04:19] [debug] register command "Upload Active Folder" from "./fileCommandUploadActiveFolder.ts"
[09-05 17:04:19] [debug] register command "Upload File" from "./fileCommandUploadFile.ts"
[09-05 17:04:19] [debug] register command "Upload Folder" from "./fileCommandUploadFolder.ts"
[09-05 17:04:19] [debug] register command "Upload Force" from "./fileCommandUploadForce.ts"
[09-05 17:04:19] [debug] register command "Upload Project" from "./fileCommandUploadProject.ts"
[09-05 17:04:20] [info] config at /home/user/site.loc {"remotePath":"/","uploadOnSave":true,"useTempFile":false,"openSsh":false,"downloadOnOpen":false,"ignore":[],"concurrency":4,"protocol":"ftp","connectTimeout":10000,"interactiveAuth":false,"secure":"true","remoteTimeOffsetInHours":0,"name":"name","host":"host.com","port":21,"passive":true,"username":"******","password":"******"}```
m8brgarc commented 1 year ago

I'm having this issue as well.

karmeljuk commented 1 year ago

I'm having this issue as well.

Add "secure": "control",

{
    "name": "name",
    "host": "host",
    "protocol": "ftp",
    "port": port,

    "secure": "control",

    "username": "username",
    "remotePath": "remotePath",
    "password": "password",  
    "uploadOnSave": true,
    "ignore": []
}
satiromarra commented 1 year ago

You can try my version, I have fixed bugs and added new features, maybe this will fix the problem you are having. https://marketplace.visualstudio.com/items?itemName=satiromarra.code-sftp

leandrogrupozani commented 10 months ago

You can try my version, I have fixed bugs and added new features, maybe this will fix the problem you are having. https://marketplace.visualstudio.com/items?itemName=satiromarra.code-sftp

same error :(