Describe the bug
We can connect with servers in active mode. The SFTP extension lacks of an attribute to config the connection for servers in active mode.
To Reproduce
1 - Config your sftp.json as normal like this: (so is, without any option to opt by passive or active mode)
{
"name": "yourname",
"host": "yourhost",
"protocol": "ftp",
"port": 21,
"username": "yourusername",
"remotePath": "/httpdocs/",
"uploadOnSave": false,
"useTempFile": false,
"openSsh": false
}
2 - Try to upload a file
3 - In Output panel see the problem:
[05-15 11:37:59] [debug] < '230 User youruser logged in\r\n'
[05-15 11:37:59] [debug] > FEAT
[05-15 11:37:59] [debug] < ' RANG STREAM\r\n REST STREAM\r\n SIZE\r\n SSCN\r\n TVFS\r\n UTF8\r\n211 End\r\n'
[05-15 11:37:59] [debug] > TYPE I
[05-15 11:37:59] [debug] < '200 Type set to I\r\n'
[05-15 11:37:59] [debug] > PASV
[05-15 11:38:00] [debug] < '227 Entering Passive Mode (youripserver).\r\n'
[05-15 11:38:10] [debug] > ABOR
[05-15 11:38:10] [debug] < '226 Abort successful\r\n'
Expected behavior
I would expect to have an option to connect with servers with active mode, because not all FTP servers accept connection on passive mode.
Do you read the FAQ?
Describe the bug We can connect with servers in active mode. The SFTP extension lacks of an attribute to config the connection for servers in active mode.
To Reproduce 1 - Config your sftp.json as normal like this: (so is, without any option to opt by passive or active mode) { "name": "yourname", "host": "yourhost", "protocol": "ftp", "port": 21, "username": "yourusername", "remotePath": "/httpdocs/", "uploadOnSave": false, "useTempFile": false, "openSsh": false } 2 - Try to upload a file 3 - In Output panel see the problem: [05-15 11:37:59] [debug] < '230 User youruser logged in\r\n' [05-15 11:37:59] [debug] > FEAT [05-15 11:37:59] [debug] < ' RANG STREAM\r\n REST STREAM\r\n SIZE\r\n SSCN\r\n TVFS\r\n UTF8\r\n211 End\r\n' [05-15 11:37:59] [debug] > TYPE I [05-15 11:37:59] [debug] < '200 Type set to I\r\n' [05-15 11:37:59] [debug] > PASV [05-15 11:38:00] [debug] < '227 Entering Passive Mode (youripserver).\r\n' [05-15 11:38:10] [debug] > ABOR [05-15 11:38:10] [debug] < '226 Abort successful\r\n'
Expected behavior I would expect to have an option to connect with servers with active mode, because not all FTP servers accept connection on passive mode.
Desktop: