LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   editors that can edit files over ssh (https://www.linuxquestions.org/questions/linux-software-2/editors-that-can-edit-files-over-ssh-4175417839/)

Skaperen 07-20-2012 01:35 PM

editors that can edit files over ssh
 
I know that some editors can do remote files. But it seems they are limited to FTP, or in some cases HTTP where PUT is enabled. The user here that wants to do remote editing graphically is finding slow response when running gvim on a remote machine opening a window on his desktop. But he's unable to get it to open a file via ssh or scp or rsync (over ssh). Anyone know of an editor with the vi command set that can do this over ssh?

I do not want to have users mounting remote filesystems because the number of remote machines is expected to get very large, so I am ruling out things like sshfs as a practical solution.

Kustom42 07-20-2012 02:22 PM

gvim is a vi over ssh solution so if you're getting slow performance with gvim creating an vi over ssh command would give you the same results. I would start looking at the root cause of the latency in the network.

Skaperen 07-21-2012 11:55 PM

Quote:

Originally Posted by Kustom42 (Post 4733990)
gvim is a vi over ssh solution so if you're getting slow performance with gvim creating an vi over ssh command would give you the same results. I would start looking at the root cause of the latency in the network.

If the X app is remote, it is always slow. There is latency and X does a lot of packet turnarounds that add up latency quickly.

I was told that gvim would not communicate via ssh. Need to check into that and how it is set up. If it is running the actual ssh command, it should work, since the actual ssh command does. Unfortunately I don't have the machines involved and will need to work with those that do. At least now I know it is supposed to work.

TobiSGD 07-22-2012 07:13 AM

Vim/Gvim has since version 6 the netrw plugin installed by default. It can use scp to edit files on a remote machine (amongst other formats). Have a look here, this may be helpful for you: http://vim.wikia.com/wiki/Editing_re...via_scp_in_vim


All times are GMT -5. The time now is 12:33 AM.