随笔 - 105,  文章 - 31,  评论 - 3,  阅读 - 13万

一、web_ssh版本安装使用

  web_ssh源码:https://github.com/shellinabox/shellinabox

1)安装依赖包

yum install git openssl-devel pam-devel zlib-devel autoconf automake libtool

2)github下载源码

git clone https://github.com/shellinabox/shellinabox.git && cd shellinabox

3)执行操作

autoreconf -i

4)编译安装

./configure --prefix=/usr/local/shellnabox
make && make install

 5)启动

复制代码
[root@jenkens bin]# /usr/local/shellnabox/bin/shellinaboxd 
[ssl] Cannot read valid certificate from "certificate.pem"! Check file permissions and file format.
该错误是需要和ssl结合使用,更安全

[root@jenkens bin]# /usr/local/shellnabox/bin/shellinaboxd -t  忽略ssl启动
在新窗口执行
[root@jenkens ~]# netstat -lntup|grep 4200
tcp        0      0 0.0.0.0:4200            0.0.0.0:*               LISTEN      6429/shellinaboxd 

[root@jenkens bin]# /usr/local/shellnabox/bin/shellinaboxd -t -b  后台启动
复制代码

网页打开,注意防火墙问题

特别强调。root账号不支持登陆

 

posted on   可口_可乐  阅读(1397)  评论(0编辑  收藏  举报
< 2025年4月 >
30 31 1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 1 2 3
4 5 6 7 8 9 10

点击右上角即可分享
微信分享提示