Veröffentlicht am

FTP over TLS in Visual Studio Code using sftp

If u want to connect to remote server via FTP over TLS, u can use the liximomo sftp extension. It comes along with a ftp explorer. There is a trick within the secure options, u have to extend your config as follows:

{
 "name": "my server1",
 "host": "127.0.0.1",
 "port": 21,
 "type": "ftp",
 "username": "id",
 "password": "pw",
 "path" : "/"
}
{
 "name": "my server1",
 "host": "127.0.0.1",
 "port": 21,
 "type": "ftp",
 "username": "id",
 "password": "pw",
 "path" : "/",
 "secure": true,
 "secureOptions": {"rejectUnauthorized": false}
}