Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connect to remote server error: read ECONNRESET #517

Open
1 task
SIMONLQY opened this issue Oct 11, 2024 · 0 comments
Open
1 task

Connect to remote server error: read ECONNRESET #517

SIMONLQY opened this issue Oct 11, 2024 · 0 comments

Comments

@SIMONLQY
Copy link

Do you read the FAQ?

Describe the bug
the sftp.json is properly set, but the connection to remote server is failed with error: read ECONNRESET

Specifically, m sftp.json is set as:
{
"name": "server",
"host": "my_host_address",
"username": "my_user_name",
"protocol": "sftp",
"privateKeyPath": "/Users/user/.ssh/id_rsa",
"port": 22,
"remotePath": "/home/myProject",
"uploadOnSave": true,
"ignore": [".vscode", ".git", ".DS_Store"]
}

What's strange is that i can successfully connect to my server with ssh, even in SFTP:EXPLORER page with "Open SSH in terminal" and it can be connected, but with sftp itself it will cause error error: read ECONNRESET.

My server require proxy to connect to but i have tried to add proxy in vscode and it still not work.

To Reproduce
Steps to reproduce the behavior:

  1. Install SFTP
  2. Open a project folder and Set the sftp.json as above.
  3. Try to upload a file.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Mac
  • VSCode Version [e.g. 1.51.0]
  • Extension Version [e.g. 1.7.0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant