Install shellinabox in Centos

Source: Internet
Author: User
Shellinabox is a Web-based remote Terminal simulator built using Ajax technology. that is to say, after the software is installed, you do not need to enable the ssh service, the remote host can be maintained through Web pages. for security reasons, Shellinabox enforces https by default. this is an interesting technology, as a result, the centos was used up and the main operation steps were recorded below.

1. install shellinabox

wget http://shellinabox.googlecode.com/files/shellinabox-2.10.tar.gztar -zxvf shellinabox-2.10.tar.gzcd shellinabox-2.10./configure --prefix=/usr/local/shellinaboxmake && make install

2. shellinabox trial start

/Usr/local/shellinabox/bin/shellinaboxd-B-t #-B option indicates that it is started in the background, -t option indicates that the process is not started using https. by default, the system listens to the TCP4200 Port netstat-ntpl | grep shell # Check the port killall shellinaboxd enabled by shellinabox.

3. generate a pem certificate and start it in https mode. the pem certificate format is public key and private key, and is packaged in x509 format.

Openssl genrsa-des3-out my. key 1024 # After running this command, you need to enter a large amount of information openssl req-new-key my. key-out my. csrcp my. key my. key. orgopenssl rsa-in my.key.org-out my. keyopenssl x509-req-days 3650-in my. csr-signkey my. key-out my. crtcat my. crt my. key> certificate. pem/usr/local/shellinabox/bin/shellinaboxd-c/root-u root-B #-c parameter specifies the pem certificate Directory. the default certificate name is certificate. pem,-u option specifies the starting user identity netstat-ntpl | grep 4200 ps-ef | grep shell

Now, you can use IE as an SSH client to access the server. in the IE address bar, enter https: // 192.168.0.99: 4200 (this is the IP address of my intranet testing server ), you can see the following page.

Next, you can enter the command as you log on to the SSH client.

A problem occurs during the installation process. after the installation is complete, you can see the login: Information in IE, but the root login fails, later, I asked my friend in the next linux group. He said that by default, root login is not allowed. only other users can log on, and then su-switches over.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.