Emacs-over-ssh?

Paul Lussier p.lussier at comcast.net
Wed Apr 26 22:09:01 EDT 2006


Jerry Feldman <gaf at blu.org> writes:

> I do this very routinely. 
>
> The first step with ssh is to make sure that you enable X tunneling.
> ssh -x remote-host Then any X based utility you run from that
> session on remote-host will show up on your local system.

That's not what he's asking for.  He wants to, from emacs running on
his *local* system, compose/edit a file, save it locally, then also
write it out to a remote system from *within* the exisitng emacs
session.  For this, you want tramp.

> I am currently logged in to an Itanium system in the lab and I am running 
> Xemacs.
>
> I also am running a system through a Citrix server through exceed from my 
> Linux system here even through a corporate proxy server. While my system 
> here is SuSE 10.0, when I log into the Citrix server it presents me with a 
> Putty icon that is fed through Exceed (a Windows X server). 

In most cases, I find doing this rather slow, problematic, and risky.
I much prefer running emacs within a shell system on the remote system
under screen.  If for some reason the connection between the 2 systems
is broken, I don't lose anything on the remote system at all.  

I routinely (more like 24/7) run my emacs sessions within screen this
way.  This also has the major advantage that I can connect to the same
editing session from *anywhere* with almost no loss of performance.

The emacs session I'm responding to this e-mail with is running on my
system in my home office under screen.  Currently I'm down stairs on
my Mac ssh'ed into my system upstairs.  When I go to work tomorrow,
there will be an xterm already open on my desktop already ssh'ed into
my home system with that same screen session already attached to.  If
for some reason the firewall at work resets my connection, my desktop
at work gets the plug yanked by the cleaning people, or a backhoe
takes out some fiber somewhere, I'll be able to ssh back into my
system and re-attach to the screen session like nothing ever happened.

The really cool thing is, at work, I'm connecting to my home screen
session from within a local screen session. Which means if I'm in the
lab on a system with no X capability, I can ssh into my work desktop
and connect to my local screen session and check my home e-mail with
no loss of performance.  But I digress :)

-- 
Seeya,
Paul
"running elscreen.el under emacs running within screen running within screen"



More information about the gnhlug-discuss mailing list