[Top][All Lists]

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

Remote TCP server through ssh tunnel [Was: Re: Server port]

From: Lluís
Subject: Remote TCP server through ssh tunnel [Was: Re: Server port]
Date: Sun, 24 Oct 2010 18:48:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Stefan Monnier writes:

>> Can this now be applied?  I have posted an updated patch to
>> http://debbugs.gnu.org/cgi/bugreport.cgi?bug=854

> Yes, people, feel free to install it, thank you,

Which reminds me... can I use emacsclient to connect to a server behind
a firewall?

I've tried with this:

server$ emacs --daemon --eval '(setq server-use-tcp t server-host "")'
server$ netstat -nap | grep emacs
tcp        0      0 *               LISTEN      
server$ ssh -R 13502:localhost:13501 firewall
client$ ssh -L 13501:localhost:13502 address@hidden
# I already have an existing tunnel for ssh connections to server
client$ scp server:.emacs.d/server/server /tmp/server
client$ sed -i -e s/ /tmp/server
client$ emacsclient -f /tmp/server -c
Waiting for Emacs...
*ERROR*: Display :0.0 can't be opened
[Exit 1 ]
client$ emacsclient -f /tmp/server -nw
*ERROR*: Could not open file: /dev/pts/5

Do you have any clue of why is this happenning? According to the
documentation, this should work flawlessly (at least with hosts on the
same network):


 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom

reply via email to

[Prev in Thread] Current Thread [Next in Thread]