henrikpersson / rsub

Use rmate with Sublime Text.
458 stars 70 forks source link

/opt/bin/rsub: line 393: /dev/tcp/localhost/52698: Connection refused #76

Open wansiedler opened 5 years ago

wansiedler commented 5 years ago

Please help! =(

[~]> cat ~/.ssh/config Host router User me HostName 192.168.1.1 Port 65000 RemoteForward 52698 localhost:52698 [~]> ssh router ASUSWRT-Merlin RT-AC5300 384.8-2 Sat Dec 8 18:19:13 UTC 2018 me@RT-AC5300-EC70:/tmp/home/root# /opt/bin/rsub ~/test.txt

/opt/bin/rsub: connect: Connection refused /opt/bin/rsub: line 393: /dev/tcp/localhost/52698: Connection refused me@RT-AC5300-EC70:/tmp/home/root#

WTF!?

Tried to dump all iptables rules. No luck =(((

logger "Setting default filter policy" iptables -P INPUT ACCEPT iptables -P FORWARD ACCEPT iptables -P OUTPUT ACCEPT logger "Flushing all rules"

-F flushes all the chains. Chains can't be deleted unless they are empty

iptables -F

-X Delets all the non-builtin chains in the table

iptables -X

-Z Zero's the packet and byte counters in all chains

iptables -Z

KES777 commented 5 years ago
  1. try to change localhost by 127.0.0.1

  2. Do you run rsub on local or remote host?

  3. does something listening on 52698 on your local machine? probably port is forwarded but nothing is listening on your local machine

run sudo netstat -tulpan | grep 52698 ( or at least netstat -an| grep 52698 ) on local and remote host. and paste output here