I am logging on a Linux computer through a Windows computer via SSH. I'm wondering if I can modify and, therefore, save files that are on that Linux computer?

If it is possible, what are my options? Is VIM the only option, or is there a more friendly application that would enable me to modify the file?

Thanks!

Dani AI

Generated

As asked whether files on a remote Linux box can be modified over SSH: yes. and rightly pointed out the simple server-side and transfer-first patterns. Below are additional, modern workflows and practical cautions that complement those replies and suit a Windows client connecting to Linux.

For a GUI-like experience from Windows, consider editor/IDE integrations that operate over SSH (for example Visual Studio Code Remote - SSH) so the editor runs locally but works directly on the remote tree (VS Code Remote - SSH). Emacs users can use TRAMP to open remote files as if they were local (TRAMP). Alternatively, mount the remote filesystem locally with an SSH-based FUSE client (or SSHFS-Win on Windows) so any local editor can be used natively (sshfs (libfuse)).

For workflows that copy files back and forth, rsync is reliable for one-off edits and batch syncs; mount-based or IDE-remote approaches are better for ongoing development. Example sync pattern:

rsync -avz user@host:/remote/path/file /local/path/
# edit locally, then push back:
rsync -avz /local/path/file user@host:/remote/path/

Cautions: check ownership and permissions before saving—some editors write via temp files then replace the original, which can change ownership or permissions and break services. For editing files that require elevated privileges, use a safe edit mechanism that preserves ownership (for example sudoedit) rather than running an editor in-place as root. Also keep backups and be mindful of latency and concurrency if multiple users may touch the same file. Choose the method that matches frequency of edits, required tooling, and administrative constraints.

Recommended Answers

All 2 Replies

nano is a bit easier to use than vim

>I'm wondering if I can modify and, therefore, save files that are on that Linux computer?
Yes.

>If it is possible, what are my options?
You can almost certainly use something called SFTP (secure ftp), which uses the ssh protocol. Using this, you can download files, modify them on your local computer, then reupload them onto the server.

As for editing the files directly on the server... this really depends on the server you're connecting to. I've used some that don't even have vim, and instead force you to use its older cousin, vi. Still others allow X11 forwarding, which enables the use of graphical editors like gedit. Again, it all depends on the server.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.