[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 "0.0.0.0")'
server$ netstat -nap | grep emacs
tcp 0 0 0.0.0.0:13501 0.0.0.0:* LISTEN
12078/emacs
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/0.0.0.0/127.0.0.1/ /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):
http://www.gnu.org/software/emacs/manual/html_node/emacs/emacsclient-Options.html
Thanks,
Lluis
--
"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
Tollbooth
- Re: Server port, Leo, 2010/10/23
- Re: Server port, Stefan Monnier, 2010/10/23
- Remote TCP server through ssh tunnel [Was: Re: Server port],
Lluís <=
- Re: Remote TCP server through ssh tunnel [Was: Re: Server port], Ken Raeburn, 2010/10/24
- Re: Remote TCP server through ssh tunnel, Lluís, 2010/10/25
- Re: Remote TCP server through ssh tunnel, Chad Brown, 2010/10/25
- Re: Remote TCP server through ssh tunnel, Stefan Monnier, 2010/10/25
- Message not available
- Re: Remote TCP server through ssh tunnel, Lluís, 2010/10/25
- Re: Remote TCP server through ssh tunnel, Ken Raeburn, 2010/10/26