💗心爱的💗-小沨

  • 首页
  • 网盘
  • 图床
  • 赞助
  • 关于本站
私人小天地
谈天说地,学习笔记
  1. 首页
  2. Linux系统
  3. 正文

shellinabox安装与使用,web ssh利器

2014年11月17日 6373点热度 0人点赞 1条评论

shellinbox有一个内建的web server作为基本的web ssh client,允许你通过指定的端口访问linux服务器的ssh shell,只要你的浏览器支持AJAX/JS/CSS就可以访问,不需要额外的浏览器插件,十分的简单操作,软件轻量级,不过服务端需要openssl支持,debian和ubuntu官方还提供有deb,centos也有rpm包。
具体自己看吧。

debian系统:https://packages.debian.org/sid/shellinabox
ubuntu系统:https://help.ubuntu.com/community/shellinabox

其他linux的自己下载源码编译

https://code.google.com/p/shellinabox/downloads/list

以debian系统安装为例子:

1.下载

http://ftp.de.debian.org/debian/pool/main/s/shellinabox/shellinabox_2.14-1_i386.deb

2.安装

dpkg -i shellinabox_2.14-1_i386.deb

如果安装如出现debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76.错误

修改debconf提示的方式:

dpkg-reconfigure debconf

选择6,然后选择2

3.修改配置文件/etc/default/shellinabox (根据自己需求修改)

# Should shellinaboxd start automatically
SHELLINABOX_DAEMON_START=1

# TCP port that shellinboxd's webserver listens on
SHELLINABOX_PORT=4200
#4200端口可以自己修改

# Parameters that are managed by the system and usually should not need
# changing:
# SHELLINABOX_DATADIR=/var/lib/shellinabox
# SHELLINABOX_USER=shellinabox
# SHELLINABOX_GROUP=shellinabox

# Any optional arguments (e.g. extra service definitions).  Make sure
# that that argument is quoted.
#
#   Beeps are disabled because of reports of the VLC plugin crashing
#   Firefox on Linux/x86_64.
SHELLINABOX_ARGS="--no-beep"

#localhost表示只能本机web登陆 #-s后面指定ssh服务器的地址
#SHELLINABOX_ARGS="--no-beep -s /:SSH:127.0.0.1 --localhost-only"

4.web登陆

http://localhost:4200/


最后登录,root 不可以直接登录,先新建帐号

adduser uname

输入2次密码

登录了uname在更换root

su root

完成

最后安全性自己负责,因为把ssh暴露在web shell 很危险,自己没有那个能力就不要去尝试,over

收集于http://my.oschina.net/guol/blog/202013

标签: shellinabox ssh web
最后更新:2018年12月10日

mikj

这个人很懒,什么都没留下

打赏 点赞
< 上一篇
下一篇 >

文章评论

  • 汤博

    涨姿势了。

    2014年11月19日
    登录以回复
  • 您需要 登录 之后才可以评论
    站内搜索
    联系我
    分类
    • AI智能
    • Android
    • Linux系统
    • VPS服务器
    • windows系统
    • wordpress
    • 域名相关
    • 建站分享
    • 教程学习
    • 数据库类
    • 旅行点滴
    • 未分类
    • 网络服务
    • 资源分享
    • 跨境出海
    • 金融投资
    友情链接
    • QQPCC
    • 豆博
    • 麦麦同学
    • 天下无鱼
    • semnew
    • 撸羊毛
    • QQTM论坛
    • 爱购啦
    • 轨迹博客
    • 娃娃博客
    • Shucheng Li
    • LINUX DO
    • 死老鬼
    • 李子博客
    • 怪鸟博客
    • 我的图库
    • 寥寥后花园
    • 陈否否
    • 朱志瑞
    • 我喔喔喔
    • 光的魔术师
    • 小沨记事本
    • 傻子-跸西的blog
    • vzone
    • 夜狐

    COPYRIGHT © 2025 Xinai.De. ALL RIGHTS RESERVED.@ 网站运行:@ 服务器运行状态

    Theme Kratos Made By Seaton Jiang