[GH-ISSUE #2183] SFTP error with SOCKS proxy in MacOS big sur #1359

Closed
opened 2026-02-27 00:03:13 +03:00 by kerem · 2 comments
Owner

Originally created by @YaoYinYing on GitHub (Jul 11, 2021).
Original GitHub issue: https://github.com/electerm/electerm/issues/2183

Please check known issues first

https://github.com/electerm/electerm/wiki/Know-issues

Electerm version:

1.13.4

Operating system( ):

macos big sur latest ver

Expected Behavior

Remote folder should be shown in Sftp session

Can you reproduce the same behavior in other terminal:

Transmit5 (MacOS, same machine) didnot work in that proxy condition either

MobaXterm and Xftp in my Windows machine work with that Socks proxy

Current Behavior

SSH over SOCKS5 proxy works but SFTP never does. No remote content shows

error msg bubble:
Error: Unexpected packet before version
at file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.13.4:2:1505560
at Object.resolve (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.13.4:2:1438032)
at Worker. (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.13.4:2:1438961)

Possible Solution

I aways transfer my files via an windows host running RDP then send them to my destination host with Xftp.

Steps to Reproduce

  1. Running Easyconnect in docker (see https://github.com/Hagb/docker-easyconnect) to create a SOCKS5 proxy
  2. in Electerm bookmark preference, set the hostname and port of proxy for session use
  3. Create an SSH session. this works.
  4. Open attached Sftp session (error bubble and blank)

Context (Environment)

Detailed Description

Suggestions?

Originally created by @YaoYinYing on GitHub (Jul 11, 2021). Original GitHub issue: https://github.com/electerm/electerm/issues/2183 ## Please check known issues first https://github.com/electerm/electerm/wiki/Know-issues <!--- Provide some basic info --> ## Electerm version: 1.13.4 ## Operating system( ): macos big sur latest ver ## Expected Behavior <!--- Tell me what should happen --> Remote folder should be shown in Sftp session ## Can you reproduce the same behavior in other terminal: <!--- If same bahavior happens in other terminal, maybe it is supposed to be like this or not a problem of terminal app --> Transmit5 (MacOS, same machine) didnot work in that proxy condition either MobaXterm and Xftp in my Windows machine work with that Socks proxy ## Current Behavior <!--- Tell me what happens instead of the expected behavior --> SSH over SOCKS5 proxy works but SFTP never does. No remote content shows error msg bubble: Error: Unexpected packet before version at file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.13.4:2:1505560 at Object.resolve (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.13.4:2:1438032) at Worker.<anonymous> (file:///Applications/electerm.app/Contents/Resources/app.asar/assets/js/electerm.js?1.13.4:2:1438961) ## Possible Solution <!--- Not obligatory, but suggest a fix/reason for the bug, --> I aways transfer my files via an windows host running RDP then send them to my destination host with Xftp. ## Steps to Reproduce <!--- Provide a link to a live example, or an unambiguous set of steps to --> <!--- reproduce this bug. Include code to reproduce, if relevant --> 1. Running Easyconnect in docker (see https://github.com/Hagb/docker-easyconnect) to create a SOCKS5 proxy 2. in Electerm bookmark preference, set the hostname and port of proxy for session use 3. Create an SSH session. this works. 4. Open attached Sftp session (error bubble and blank) ## Context (Environment) <!--- How has this issue affected you? What are you trying to accomplish? --> <!--- Providing context helps us come up with a solution that is most useful in the real world --> ## Detailed Description <!--- Provide a detailed description of the change or addition you are proposing --> ## Suggestions? <!--- Not a bug report, just some thoughts or suggestions? It is totally OK and welcome too -->
kerem 2026-02-27 00:03:13 +03:00
Author
Owner

@zxdong262 commented on GitHub (Jul 11, 2021):

@YaoYinYing I tried my sock5 proxy, it works, so I think it is something related to proxy that I do know yet.

<!-- gh-comment-id:877750088 --> @zxdong262 commented on GitHub (Jul 11, 2021): @YaoYinYing I tried my sock5 proxy, it works, so I think it is something related to proxy that I do know yet.
Author
Owner

@YaoYinYing commented on GitHub (Jul 16, 2021):

Thx for ur quick reply. I have already solved this problem with endless and painful tests within these days. It's accurally caused by a echo something command in ~/.bashrc of my host. It's weird but works.

<!-- gh-comment-id:881363467 --> @YaoYinYing commented on GitHub (Jul 16, 2021): Thx for ur quick reply. I have already solved this problem with endless and painful tests within these days. It's accurally caused by a `echo something` command in `~/.bashrc` of my host. It's weird but works.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/electerm#1359
No description provided.