Re: Edit files via ssh with gui editors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Igor NestoroviÄ wrote:

In Red Hat 9:

[complicated stuff snipped]


On pon, 2003-09-29 at 15:07, Brian Johnson wrote:


I've been looking for a way to use a gui text editor to edit files on a remote server.


X is a network protocol.

Just ssh to the remote server and run the application there. Nothing else needed.

Slightly more complicated:

You can skip ssh by running "xhost +<remote-host-name>" and then on the remote machine:

export DISPLAY=<local-host-name>:0

and then run the application.


As complicated as you'll ever need:


xauth nlist $(hostname):0 | ssh <remote-host> /usr/X11R6/bin/xauth -f ~/.Xauthority nmerge -

then on the remote machine

export DISPLAY=<local-host-name>:0

and then run the application.

Messing with application-specific stuff is OK, but it's bit tedious. There are, of course, numerous other ways to achieve the same affect. To name but a few:

* scp/ftp/rcp files back and forth
* mount remote filesystem locally using nfs
* some editors (e.g. emacs) have a mechanism for specifying remote files
* lbxproxy for slow remote connections
* log in to the console on the remote machine :-)
This is, after all, Unix and there are always dozens of ways of doing the same thing. Be imaginitive. Find one you like and wrap it in a shell script.


jch


-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux