-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512
On 2014-07-29 20:26, email@example.com wrote:
On Tue, Jul 29, 2014 at 11:23:57AM +0200, Timothée Ravier wrote:
You may use ssh -R to open a remote socket forwarding packets to your host and then send commands through it:
ssh my.server.com -t -R 7777:localhost:7777 -- ...
I tried this, but I can't get the port forwarding to work. Testing it using netcat, I can get the local port forwarding to work, but netcat exits without printing anything (even in verbose mode) with the remote port forwarding enabled. Do you know where the error can be ?
I'm not sure I understand what's your issue here. This command will only forward any packets sent to localhost:7777 on the server to port 7777 on the client. You still need a program listening on port 7777 on the client (either sshd, telnet, my sample program...).
Here is how I did it, with newsbeuter in a tmux: http://tim.siosm.fr/blog/2014/02/16/first-rust-prog-and-rss-reader-update/
This is a good link, that's exactly what I want to do.
- -- Timothée Ravier