CentOS installation and configuration GateOne to implement Web terminal SSH function

888u

Last update at :2024-06-24,Edit by888u

Snail originally planned to write this article about a WSSH tool to achieve the effect of browser Web access to SSH. When checking related articles, I saw the more powerful GateOne. GateOne is an open source and HTML5-based SSH tool suitable for WEB terminals. It is basically unusable for us ordinary users, but my curiosity made me want to see what this tool looks like.

I encountered various problems during the configuration process and consulted countless documents. It took about three or four hours to install and configure GateOne. I was planning to give up, but in the end I persisted to at least ensure that the current records were recorded. The content is complete. GateOne can also be used for infiltration tasks in some applications. This is beyond the scope of my exploration. I simply installed it in a Linux VPS to see the actual interface experience.

First, preparations

1. Snail here is installed based on CentOS 7 64bit system.

2. It must be in a test machine environment, and there is no other important data in the server.

3. GateOne installation is purely for exploring different tools and curiosity, and most users have no actual production needs.

4. The article refers to http://www.isvee.com/archives/1595 and https://github.com/liftoff/GateOne.

Second, install PIP

wget https://soft.laozuo.org/git/get-pip.pypython get-pip.py

Third, install tornado and Pillow

pip install \\’tornado==2.4.1\\’pip install Pillow

Fourth, download GateOne and install it

wget https://github.com/downloads/liftoff/GateOne/gateone-1.1.tar.gztar -zxvf gateone-1.1.tar.gzcd GateOnepython setup.py install

Fifth, run GateOne

cd /opt/gateone./gateone.py

Up to now, if we install it locally, we can open it on the server at https://127.0.0.1:443, but we don’t want this. We need to open it remotely directly, such as entering the server IP:port and then managing it remotely.

Sixth, modify GateOne configuration remote management

/opt/gateone/server.conf

Because it is not currently accessible from the outside, we need to modify the configuration file. The main thing is to add the content shown in the picture above to origins, and our server IP address needs to be added. At the same time, the default port part in the current file is 443, and we can also modify it to our own port.

iptables -I INPUT -p tcp –dport 443 -j ACCEPT

The default port is 443, which we need to allow. If it is another custom port that has been modified, modify it and allow it as usual. I almost forgot, I still need to add it to the above configuration file:

session_timeout = \\”20m\\”

If you don’t join, it will keep refreshing and will be inoperable.

Seventh, set the startup service

If it is necessary to set the default background operation at startup, we can execute it when we need to run it.

cd /opt/gateone./gateone.py

In this way, enter https://server IP address:custom port in the address bar to access. Then if we need to set up automatic background running.

/sbin/chkconfig gateone onsystemctl start gateone

Eighth, take a look at the GateOne demo

From the server IP address: port we set, open the SSH tool to see the WEB status, which can be used to manage servers that require remote management.

To summarize, GateOne is not necessary for users with general functional purposes. We can use xshell or putty for management, but for those who need in-depth development, there is still a need for SSH tools embedded in the application.

Recommended site searches: expired registered domain names, dual-line servers, registered international domain names, in domain names, US multi-ip station group vps, asp virtual hosts, free website space applications, domain name servers, proxy ip purchase websites, Hong Kong servers Rent,

CentOS installation and configuration GateOne to implement Web terminal SSH function

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码