How do I correctly SSH port forward using LiveReload on Redhat?

Posted by program247365 on Server Fault See other posts from Server Fault or by program247365
Published on 2012-09-24T20:09:56Z Indexed on 2012/09/24 21:39 UTC
Read the original article Hit count: 298

Filed under:
|
|
|

Referencing this page:

http://feedback.livereload.com/knowledgebase/articles/86280-if-you-edit-files-directly-on-your-server

It says you can remotely port forward the LiveReload specific port of 35729, using this command:

ssh -L 35729:127.0.0.1:35729 mylogin@myremoteserverIP

When I run the -v option, I get:

debug1: Local connections to LOCALHOST:35729 forwarded to remote address 127.0.0.1:35729 debug1: Local forwarding listening on ::1 port 35729.
debug1: channel 0: new [port listener]
debug1: Local forwarding listening on 127.0.0.1 port 35729.
debug1: channel 1: new [port listener]
debug1: channel 2: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: client_input_channel_req: channel 2 rtype [email protected] reply 1
debug1: Connection to port 35729 forwarding to 127.0.0.1 port 35729 requested.
debug1: channel 3: new [direct-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 35729 for 127.0.0.1 port 35729, connect from 127.0.0.1 port 63673, nchannels 4

I thought editing my /etc/services with this line, would work, but it doesn't:

livereload 35729/tcp # livereload usage with guard-livereload

Every time I attempt to connect with the browser extension, I believe It's getting blocked by my server. What am I missing here? Do I need to edit /etc/services for this to work?

© Server Fault or respective owner

Related posts about ssh

Related posts about bash