satiromarra / vscode-sftp

Super fast sftp/ftp extension for VS Code
Other
23 stars 3 forks source link

SSL connection failed: session reuse required #1

Closed SrVince closed 1 year ago

SrVince commented 1 year ago

Do you read the FAQ?

Describe the bug When try connect to ftp with ssl self-signed, return "session reuse required"

My config:

"protocol": "ftp",
"secure": true,
"secureOptions": {"rejectUnauthorized": false},
"port": 21,

Can you help me? Thanks.

satiromarra commented 1 year ago

@SrVince I have tested a configuration like this on an ftp server with tls function and a self signed certificate and it connects correctly.

{
  "name": "xxx",
  "password": "xxx",
  "username": "xxx",
  "host": "xxx",
  "protocol": "ftp",
  "port": 21,
  "secure": true,
  "secureOptions": {"rejectUnauthorized": false}
}

Tries:

The error "session reuse required" is returned by the ftp server "vsftpd", if you have access to the server to correct it you have to edit the file "/etc/vsftpd.conf" of the server and add/change require_ssl_reuse=NO.

satiromarra commented 1 year ago

@SrVince tries these options:


  "secure": true,
  "secureOptions":  {"rejectUnauthorized": false, "secureProtocol" :"TLSv1_2_method"}
SrVince commented 1 year ago

That was it, I asked the owner of the server to edit the file "/etc/vsftpd.conf" of the server and add require_ssl_reuse=NO.

Thanks!

SergeySch commented 1 year ago

Hi, is there any chance to fix this issue? I am trying to connect to Filezilla FTP server using the same settings as topic starter, and it returns error "TLS session of data connection not resumed" after successful login (NOOP command is also performing ok).