参考这个页面:
http://feedback.livereload.com/knowledgebase/articles/86280-if-you-edit-files-directly-on-your-server
它说你可以使用这个命令远程端口转发35729的LiveReload特定端口:
ssh -L 35729:127.0.0.1:35729 mylogin @ myremoteserverIP
当我运行-v选项时,我得到:
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
我想编辑我的/ etc /服务这一行,将工作,但它不:
livereload 35729/tcp # livereload usage with guard-livereload
每次我试图连接浏览器扩展,我相信它被我的服务器阻止。 我在这里错过了什么? 我需要编辑/ etc / services才能正常工作吗?
在这里我们看到这个问题:
channel 3: open failed: connect failed: Connection refused
这意味着远程主机上的端口35729上没有任何内容正在监听,或者您有防火墙本地主机(不太可能)。
尝试启动Guard并确保它实际上在该端口上进行侦听。