In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to test the tunnel function of xshell, I believe many inexperienced people are helpless about this, for this reason this article summarizes the causes and solutions of the problem, through this article I hope you can solve this problem.
Scenario:
As shown above, due to corporate network reasons. From [PC], you cannot log in to [target host] directly through SSH. That means that port 22 of [PC] and [target host] are not connected to the network. You can only ssh [PC] to [Jump Machine 1], then ssh [Jump Machine 2], and finally ssh [Target Host]. Now my business colleague has a requirement to build Oracle on the target host. Since I haven't tried to use silent installation before, I want to call the graphical interface of [target host] to install Oracle.
Process:
At that time, he thought that there was no other way except to activate the network policy from [PC] to [Target Host], so he could only try to install it silently. Later, it was discovered that xshell has tunnel function, so the following attempts were made to solve the graphical interface display problem.
1 First establish a session from [PC] to [Jumping Machine 1], and open a tunnel to [Jumping Machine 2] in the session. As shown below:
Note: Listening port 12226 is any other port that can be adjusted to [PC], but make sure that this port is unused.
2. Use the tunnel created in step 1 to create a session to [Jump Machine 2] and a tunnel to [Target Host], as shown in the following figure:
Similarly, the local listening port can be changed at will, as long as it is not occupied.
3 Use the tunnel created in step 2 to create a session to the target host, as shown in the following figure:
At this time, even if the port 22 from [PC] to [target host] is blocked, you can still use xshell to connect.
4. Use xstart to create a session to the target host, and modify the relevant port. Set the port to the listening port set in step 2.
5 Set the DISPLAY parameter of ORACLE user to be consistent with the DISPLAY parameter of root user. (In fact, step 4, if you log in directly using oracle, you don't need to set it up. You can directly call netca, asmca, dbca and other graphical interfaces.)
After reading the above, do you know how to test the tunneling function of xshell? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 218
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.