এসএসএস টানেলিংয়ের উপর অদ্ভুত আউটপুট: আউটপুট ব্যর্থ হয়েছে; সংযোগ ব্যর্থ: সংযোগের সময়সীমা শেষ;


18

আমি ssh user@xx.yy.zz.41 -p 1234 -D 9898টানেলিংয়ের জন্য কমান্ড ব্যবহার করি এবং আমি ফায়ারফক্স মোজা 5 আইপি 127.0.0.1 এবং তার বন্দরটি 9898 এ সেট করেছিলাম It এটি সফলভাবে কাজ করে তবে টার্মিনালে আমার আউটপুটটিতে ত্রুটি রয়েছে:

channel 39: open failed: connect failed: Connection timed out
channel 41: open failed: connect failed: Connection timed out
channel 42: open failed: connect failed: Connection timed out
channel 43: open failed: connect failed: Connection timed out
channel 44: open failed: connect failed: Connection timed out

এটি পর্যায়ক্রমে ঘটে। এটা কী? এটা কি কোনো সমস্যা? আমি কি করতে পারি?

উত্তর:


21

আমি অনুরূপ সমস্যা অভিজ্ঞতা আছে। আপনি যদি ssh এর মাধ্যমে ফায়ারফক্সের সাথে টানেলিং করে থাকেন তবে সার্ভারের লোড বা অনুপযুক্ত কনফিগারেশনের কারণে কিছু HTTP সংযোগগুলি সাধারণত টাইমআউট করতে পারে। সংযোগটি আসলে সময়সীমা শেষ করে দিলে আপনি যা নির্দেশ করেছেন তার মতো একটি ত্রুটি বার্তা পাবেন।

আপনি নিম্নলিখিত বার্তাটি দিয়ে এই বার্তাগুলিকে দমন করতে পারেন

ssh user@xx.yy.zz.41 -p 1234 -D 9898 -q

ম্যান পেজ থেকে ssh(1)

 -q      Quiet mode.  Causes most warning and diagnostic messages to be sup-
         pressed.

বার্তাটি দমন করা সতর্কতাগুলিকে আপনার এসএস বা স্ক্রিন সেশনগুলিকে গণ্ডগোল থেকে আটকাবে।


ধন্যবাদ এই সমাধানটি দুর্দান্ত কাজ করে! একটি প্রশ্ন: সমস্ত ব্রাউজার প্রক্রিয়া বন্ধ থাকা অবস্থায়ও সময়সীমা শেষ হয়। আমি সময় নির্ধারণের কারণ কী এবং অনুরোধটি কোথায় পাঠানো হচ্ছে তা নির্ধারণের চেষ্টা করছি। ssh টানেলের জন্য আরও ভার্বোস ত্রুটি সম্পর্কিত তথ্য কীভাবে প্রদর্শন করবেন সে সম্পর্কে কোনও পরামর্শ?
জর্নবারিয়ান

3

সেট GatewayPortsথেকে yesআবার চেষ্টা করুন।

ssh -o 'GatewayPorts yes' user@xx.yy.zz.41 -p 1234 -D 9898

man ssh_config

 DynamicForward
         Specifies that a TCP port on the local machine be forwarded over the secure channel, and the application protocol
         is then used to determine where to connect to from the remote machine.

         The argument must be [bind_address:]port.  IPv6 addresses can be specified by enclosing addresses in square
         brackets.  By default, the local port is bound in accordance with the GatewayPorts setting.  However, an explicit
         bind_address may be used to bind the connection to a specific address.  The bind_address of “localhost” indicates
         that the listening port be bound for local use only, while an empty address or ‘*’ indicates that the port should
         be available from all interfaces.

         Currently the SOCKS4 and SOCKS5 protocols are supported, and ssh(1) will act as a SOCKS server.  Multiple for‐
         wardings may be specified, and additional forwardings can be given on the command line.  Only the superuser can
         forward privileged ports.

 GatewayPorts
         Specifies whether remote hosts are allowed to connect to local forwarded ports.  By default, ssh(1) binds local
         port forwardings to the loopback address.  This prevents other remote hosts from connecting to forwarded ports.
         GatewayPorts can be used to specify that ssh should bind local port forwardings to the wildcard address, thus
         allowing remote hosts to connect to forwarded ports.  The argument must be “yes” or “no”.  The default is “no”.

1
আমি 'গেটওয়েপোর্টস হ্যাঁ' ব্যবহার করি তবে এই ত্রুটিটি আবার ঘটেছিল।
আরশ মৌসভী

গেটওয়েপোর্টস সমস্যা নয়। গেটওয়ে পোর্টগুলি ssh সার্ভারকে অ-স্থানীয় পোর্ট শুনতে দেয়। বিপরীত টানেল করার সময় গেটওয়েপোর্টগুলি খুব কার্যকর হয়ে যায় - ব্যক্তিগত নেটওয়ার্ক থেকে হোস্টগুলি আপনার এসএসএল ক্লায়েন্ট হোস্টে ফিরে সংযোগ করার অনুমতি দেয়। গর্ডোলিও এর ঠিক উপরে রয়েছে: সোকস ক্লায়েন্ট ব্যবহারকারীদের দ্বারা অনুরোধ করা হোস্ট / পোর্টে পৌঁছাতে না পারলে স্থানীয় এসএসএস দ্বারা শুরু করা সোকস সার্ভার অভিযোগ করছে (গর্ডোলিওর উদাহরণ হিসাবে, ফায়ারফক্স)।
চিহ্নিত করুন
আমাদের সাইট ব্যবহার করে, আপনি স্বীকার করেছেন যে আপনি আমাদের কুকি নীতি এবং গোপনীয়তা নীতিটি পড়েছেন এবং বুঝতে পেরেছেন ।
Licensed under cc by-sa 3.0 with attribution required.