Natizyskunk / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
373 stars 68 forks source link

Still can't get FTPS to work in VScode (similar settings working in sublime text) #296

Open thenorman138 opened 1 year ago

thenorman138 commented 1 year ago

I've been using sublime text for years but really want to swap to VScode full time so I used this extension as my solution for upload on save, however, I can't get FTPS to work no matter how many ways I try. The same basic settings work in sublime text except the plugin I use there allows the 'ftps' protocol whereas this one asks to user either local, ftp or sftp.

My config file:

{
    "name": "test",
    "host": "ftpweb.user.srv",
    "protocol": "ftp",
    "secure": true,
    "secureOptions": {
        "rejectUnauthorized": false
    },
    "port": 990,
    "username": "ftpweb.user.srv|user1",
    "password": "redacted",
    "remotepath": "/",
    "uploadOnSave": true
}

FTP on a different server works but my production server is locked to port 990 on ftps. Is there any workaround to this?

guzmancarlosal commented 1 year ago

I have the same issue, Id love to see a followup note on this one.

Upellift99 commented 1 month ago

I had the same issue too, and I finally managed to make this work using this configuration:

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

https://github.com/liximomo/vscode-sftp/issues/687#issuecomment-560267055

Thank you @valeriterziev

guzmancarlosal commented 1 month ago

I had the same issue too, and I finally managed to make this work using this configuration:

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

liximomo#687 (comment)

Thank you @valeriterziev

this worked for me!