'How do I use ZModem in Visual Studio Code?
Is it possible to configure vs code
to support the ZMODEM
protocol? I could use xshell
to download files with sz
command, but when I try to use sz
in vs code
, here it returns some random number.
(base) [alpha@hpc03 newfile]$ sz INCAR
�*B00000000000000
I use Remote-SSH
extension in vs code
to connect to the Linux system.
My question is:
Is there any extension or configuration method that would allow me to use sz
in vs code
?
Solution 1:[1]
As far as I know (I looked, didn't find anything) there's no existing extension or method to use the ZModem protocol with VSCode. However, there's a pull request from 2017 that adds support for it to Xterm, which is the terminal display VSCode uses. As indicated in this mentioning issue the VSCode developers would need more information.
As far as an extension goes, if you or anyone reading this wanted to make an extension for this purpose, you could use this ZModem.js implementation of the protocol in Javascript, and write the extension yourself, or do something similar.
Solution 2:[2]
From the Remote-SSH
docs
VS Code will look for the
ssh
command in the PATH. Failing that, on Windows it will attempt to findssh.exe
in the default Git for Windows install path. You can also specifically tell VS Code where to find the SSH client by adding theremote.SSH.path
property tosettings.json
.
Maybe you can include Xshell somehow this way. Or find a windows version of zssh (not this from the Ziti project) and it could work. Another candidate is SecureCRT. (via). Probably these rich GUI apps are not embeddable as simple CLI programs, though. Which would be a useful feature in this case.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Aryn Thernium |
Solution 2 |