How to download a remote file using ftp-simple in VSCode - visual-studio-code

How do I download a file from a remote server using ftp-simple? I'm using VSCode. I'm open to recommendations on sftp extensions that work with VSCode.
Thanks.

First you have to connect FTP server using this then open your looking file and save it to your computer. or after connecting to FTP server, you can refer to your file's location using this and find your target file.

First you have to connect FTP server using this then open your looking file and save it to your computer. or after connecting to FTP server, you can refer to your file's location using this and find your target file.

Related

How to open the remote file in vscode without vscode server?

I am using the vs code for most of my development, but often I am accessing the FreeBSD system or low-resource machine which cannot handle having vs code server.
is there any way to open a remote file, without vscode server?
only basic edit capability is enough.

how to download file inside vscode terminal from remote server?

I want something like
code --download_file [path_to_file]
to download file from remote server to my local computer (instead of manual select file in file explorer because sometimes the file is not in currently open project)
Use curl. It's a "command line tool and library for transferring data with URLs"
This tutorial might help

How does the local vscode client manipulate files in the remote machine?

With the remote-ssh extension, we can use vscode's remote development feature now, which means we can access the files in a remote machine from local vscode. And I found except the remote-ssh extension, there is a vscode-server working on remote machine to communicate with local vscode.
Looks like it's the bridge between local vscode and the file system in remote machine, which say vscode access remote files through the .vscode-server. But when I read vscode's source code, I still didn't find which protocol do they used to communicate, looks like it's not http, maybe it's ssh, but I still didn't get the details. Does any one know the details between local and remote on access remote file system? Such as how does the client initiate a file read, and how does the remote return the file content to the client, which protocol they use. And how remote executes command from local, such as the git commands in source control.
We can find some source code of the vscode-server in vscode:
https://github.com/microsoft/vscode/blob/main/src/server-main.js
https://github.com/microsoft/vscode/tree/main/src/vs/server/node
not a complete answer but the extension that provides the remote connection is Microsoft/Github's "remote-ssh" (https://code.visualstudio.com/docs/remote/ssh). VS Code uses the ssh channel for effectively a peer-to-peer proprietary exchange between the local and remote machines after bootstrapping the process by using the ssh connection to issue commands to install their VS Code Server and its dependencies.
VS Code extensions generally have a link in their info to a Github repo containing the source but in the case of remote-ssh the repo is for feedback only & the code does not appear to be open source.
(https://github.com/Microsoft/vscode-remote-release)
Note the remote-ssh extension is using remote code execution primarily to "take advantage of VS Code's full feature set" (presumably including remote build and debugging) rather than simple file access. That extension does provide remote file access, but there are far simpler extensions such as ftp-simple which provide only that.

How do I open files on server in a text editor from the command line?

I'm sorry if this seems like beyond a beginner question, but I mean this seriously. I'm moving around my ubuntu server via the command line, trying to open a file called 'authorized_keys'. I tried: root#ubuntu: open -a atom authorized_keys only to learn this open -a command does not work in this ubuntu environment. I can download the files to my machine via sftp and open them, but is that the only way? Besides using nano/vim?
The tutorial I'm watching on deployment shows this guy using MobaXTerm, a windows product that allows both sftp and the command line to be present. So he is just clicking on the files on his server and they are opening. However, I am on mac, and only using the command line. Thanks for any help. I am also not sure If I tagged this question properly, feel free to move it.
Just read all of this and realized that I it would make sense if downloading and reuploading the file via sftp would be the only way.

How to edit java files in remote machine using eclipse

my project source code is in unix, we are using CM synergy source control for code checkin/chech out files. we update the files using vi editor. Pls help in how to set up eclipse in windows system and then connect to the code server and edit the files.
You could install the Remote System Explorer framework, that allows opening files from a remote server, and also gives shell access to the remote server. For anything more specific, I'm not sure whether a free solution exists.
I experienced some problems accessing remote file systems with the Remote System Explorer Plugin, the FTP session was closed unexpectedly. I recommend for linking in your local projects remote sites Aptana Eclipse Plugin.