SSH चैनल 3: सुरंग कनेक्शन ने इनकार कर दिया


0

मैं अपनी ssh सुरंग के माध्यम से कुछ खेल का उपयोग करने की कोशिश करता हूं। इसलिए मैंने ssh के साथ मोज़े प्रोटोकॉल के माध्यम से सुरंग बनाई:

sudo ssh -D 4343 -p 443 164.**.**.41 -v

अगर मैं सेटिंग्स में प्रॉक्सी को कॉन्फ़िगर करके फ़ायरफ़ॉक्स का उपयोग करता हूं, तो यह ठीक है। लेकिन किसी भी प्रोग्राम को चलाने के लिए, जैसे कि Dofus i, proxychains-ng का उपयोग करता है https://github.com/rofl0r/proxychains-ng

sudo proxychains4 -f ~/.proxychains.conf ~/games/Dofus/Dofus 

खेल शुरू, लेकिन सर्वर पर एक ही समय में मैं निम्नलिखित लाइनें हैं:

debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34692 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 4: open failed: connect failed: Connection refused
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34694 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
channel 4: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34696 to 127.0.0.1 port 4343, nchannels 5
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34698 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34700 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34702 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34704 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 4: open failed: connect failed: Connection refused
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34706 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34708 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 4: open failed: connect failed: Connection refused
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34710 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34712 to 127.0.0.1 port 4343, nchannels 5
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 4: open failed: connect failed: Connection refused
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34716 to 127.0.0.1 port 4343, nchannels 5
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34714 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 4: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
channel 4: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34718 to 127.0.0.1 port 4343, nchannels 5
debug1: channel 4: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34720 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34722 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34724 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34726 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34728 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34730 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34732 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34734 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34736 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34738 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34740 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34742 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34744 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34746 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34748 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34750 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34752 to 127.0.0.1 port 4343, nchannels 4
debug1: Connection to port 4343 forwarding to socks port 0 requested.
debug1: channel 3: new [dynamic-tcpip]
channel 3: open failed: connect failed: Connection refused
debug1: channel 3: free: direct-tcpip: listening port 4343 for 127.0.0.1 port 4343, connect from 127.0.0.1 port 34754 to 127.0.0.1 port 4343, nchannels 4

अगर AllowTcpForwarding सक्षम है, तो मैंने जाँच की और यह है।

grep Forwarding /etc/ssh/sshd_config 
X11Forwarding yes
AllowTcpForwarding yes

मुझे नहीं पता कि मुझे क्या करना है, मुझे लगता है कि मुझे iptables के माध्यम से कुछ खोलना, या अग्रेषित करना है, लेकिन मुझे नहीं पता कि वास्तव में यह कैसे होता है। और मैं प्रत्येक प्रोग्राम के लिए प्रत्येक पोर्ट नहीं खोलना चाहता।

आपके उत्तर के लिए अग्रिम धन्यवाद।


ऐसा लगता है कि एप्लिकेशन लोकलहोस्ट पर कुछ पोर्ट खोल रहा है, जिसे आपके proxychainsदूरस्थ सर्वर का उपयोग करके अग्रेषित किया गया है, लेकिन यह विफल है क्योंकि इसकी अनुमति नहीं है।
जकूजी

@Jakuje और मैं अपने सर्वर पर इसकी अनुमति कैसे दे सकता हूं?
लीमी
हमारी साइट का प्रयोग करके, आप स्वीकार करते हैं कि आपने हमारी Cookie Policy और निजता नीति को पढ़ और समझा लिया है।
Licensed under cc by-sa 3.0 with attribution required.