1. Wetty简介

Wetty是使用Node.js和websockets开发的一个开源Web-based SSH。关于Web-based SSH的更多资料请参考https://en.wikipedia.org/wiki/Web-based_SSH

而wetty的资料请参考https://github.com/krishnasrinivas/wetty

2. 环境准备

因为wetty是使用Node.js编写的,所以我们要事先安装好相关的Node.js环境。请看考这篇博文

3. Wetty安装

运行下面命令进行安装,

 $ git clone https://github.com/krishnasrinivas/wetty
$ cd wetty
$ sudo npm install

安装过程可能会出错,请参考下面的可能问题处理。

4. 验证

安装完成之后,然后运行下面命令启动wetty服务,监听3000端口号,

$ node app.js -p 

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAosAAAA5CAIAAADRFfYXAAAAA3NCSVQICAjb4U/gAAAgAElEQVR4Xu1dCXwURdbv6p77yExmJvdBEpKQBAgCIiKHgoKigHihy7IeROQQF4RVxONzdXFdFS8WFRDxZJUFdZVDAQWUQzAIAiHkIPedydx3z3T3Vz0zuUj3JBNAIVb9/Mnkdfc7/vW6XtWr6ipQWFi4ZMkS7FIrRPyU1eum754974tm32+qG5BdsfCFx27I0ogwT/3xL/+98pNfjVT4Ggj73fn2mrxEDHMWb3/l2XcOW3rBI3yp6AmEAEIAIYAQuPwQWLBgQWZmJkEQuL8EfsD/g0s0Ql9+CCONEQIIAYQAQgAh0BsE+CI03htm6BmEAEIAIYAQQAggBC4yAj2M0IxosDvhWk+kkrnI+lwi7P9o9l4isF+yaiB/uGSrBimGEOjLCAgCxgkm2Mfd4w789nymPLRH3CkUA6CY7BqQTjfXqE02ojd4iOn+L5j6RYDCRyMbHaA3HM7zGYDhIoYhAeM3rO/be55wocc7InD+/t9H8WSUvmGvmjVWwbGn1CbPeRjZ2j6U/C2y1vp7tA/nofsf8FFGPLzf9DuV7gNV27fbf9uFQpcV2gCkL8yQbzp7opnurd7BCM3UCGv3Y8JUb0zipb2kScBEz7Kn5pJyBYPRmLNQVPmpolHfIRMQ4ctZYYmVMM53VYfzhSwsIkY7zZ55vUdKYMCNN3ysKMoX9W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Xlq7v96/4bYgesxfFj04bViMBHPrT2xf/9r7Pzb7d/vmLIRu2F15f75pZFaMFHfXn9jx3qoPD9UHNhnn5g8k2fcsvP+6oQOTNUTFB3kLN9UHPv6WD3txywtXtMlwHnriT/84EWDEJZhPLq4d8dCyOeNzkiIIzNNYuPujN9fvrQ5xJCUfHyiTW38uZSAthNyw+LCs5CmT5sy/57rcGLGn5cyhLWve2Vounb7mwzkJzRsffPCTOi8mTJi1fv2foxveX/T+VW8+yemHj7InqnEXHn14653n/vDwaVUFxEyaM6Z+y8LKDnWCKwffOX/ObWMz1ALSUHZg4ytvfFPlxQjtyLsXPjh9ZKISeMxVpw7+d9XaveSVfO8day9Zu2Nz9dt5N8U9ujnoVNwAtFK55YZ+5qJe5X9/aVf5ge/xhhCOfFEVu0jM+e29SAIR276PwP8DtvTiJEcfIy4AAAAASUVORK5CYII=" alt="" />

然后打开浏览器,输入http://127.0.0.1:3000,然后输入密码登陆成功后便可以进行命令行操作了,效果如下图所示,

5. 可能问题处理

5.1安装时报error: 'Use' is not a member of 'node::Buffer'

因为我安装的Node是4.1.1版本的,太新了。而wetty原本依赖的pty.js太老,导致编译出现的问题。修改以下wetty源代码目录下的package.json,将依赖的pty.js修改成最新版本0.3.0(原本是^0.2.7-1)。保存文件,然后重新运行sudo npm install命令即可。

5.2 ssh访问失败

启动wetty服务后,在浏览器中输入http://127.0.0.1:3000时报一个类似于下面截图的”ssh: connect to host localhost port 22: Connection refused”的错误。

运行以下下面的命令重新安装openssl-client和openssl-server即可,

$ sudo apt-get remove openssh-client openssh-server
$ sudo apt-get installopenssh-client openssh-server

(done)

Linux系统下wetty安装和使用说明的更多相关文章

  1. linux系统下怎么安装.deb文件

    linux系统下怎么安装.deb文件? deb 是 ubuntu .debian 的格式.rpm 是 redhat .fedora .suse 的格式. 他们不通用(虽然可以转换一下). deb是de ...

  2. linux系统下怎么安装.deb文件?

    linux系统下怎么安装.deb文件? deb 是 ubuntu .debian 的格式. rpm 是 redhat .fedora .suse 的格式. 他们不通用(尽管能够转换一下). deb是d ...

  3. Linux 系统下Eclipse安装及使用

    Linux 系统下Eclipse安装及使用 我们在搞上层开发的时候,都是在Windows下使用Eclipse,那么如果是Linux应用开发,就必须要在Linux中安装Eclipse,用于C/C++开发 ...

  4. linux系统下nginx安装目录和nginx.conf配置文件目录

    linux系统下nginx安装目录和nginx.conf配置文件目录 1.查看nginx安装目录 输入命令 # ps  -ef | grep nginx 返回结果包含安装目录 root      26 ...

  5. Linux系统下Dubbo安装的详细教程

    Linux系统下Dubbo安装的详细教程 1.Dubbo的简介 Dubbo是 [1]  阿里巴巴公司开源的一个高性能优秀的服务框架,使得应用可通过高性能的 RPC 实现服务的输出和输入功能,可以和 [ ...

  6. Linux系统下Redis安装(一)

    最近项目要使用Redis,特将这段时间将Redis的学习经验与大家分享,算是对这段时间学习成果的总结和技术提炼,不足之处还望大家批评指正. 项目背景: 有些很少改动的数据和经常使用的数据(例如系统中下 ...

  7. linux系统下手动安装Angular-cli

    安装Angular-cli 背景 由于公司linux服务器没有外网,无法通过npm包管理器直接安装,只能手动安装一个Angular-cli平台环境! 安装步骤 1. 先再linux系统下安装好node ...

  8. linux系统下jdk安装配置

    1.有jdk包(linux版) 2.放到linux系统下 3.建议在usr下新建jdk目录之后将jdk文件放到该目录下 3.配置系统信息   /etc/profile 需要配置的信息如下:#set j ...

  9. Linux系统下Redis安装(二)

    上一篇随笔,已经成功开启了Redis-server,客户端已经可以正常对redis进行正常操作. 但是,redis-server开启的同时,一个大大doc黑屏也在那里开启着,接下来就对讲解如何在Lin ...

随机推荐

  1. am335x Lan8710a 双网口配置

    一. 经过调试, LAN8710A在 am335x 上面需要使用 GMII的模式,设备树 pin mux配置如下: // 下面是工作模式的配置,在睡眠模式下是配成GPIO模式 162 cpsw_def ...

  2. 安装corel x8提示你已安装了另外一个版本

    如果之前安装了其他版本,提示安装不进去,需卸载visual c++ 2015 redistributable(x64)即可(测试环境是安装了x6后,x8安装不了) windows install cl ...

  3. win10无法访问局域网共享文件?解决如此简单。。。。。

    1 笔记本系统win10 X64企业版,其中一文件夹已设置为“共享”.本地帐号登录系统. 2 平板电脑系统win8.1 X64专业版,可以顺畅的访问笔记本的共享文件.微软帐号登录系统. 3 平板电脑系 ...

  4. Git 基本概念

    版本控制系统 (VCS) 版本控制系统 (VCS) 是软件,帮助软件开发人员携手合作,他们的工作并保持完整的历史. 以下是VCS目标 允许开发人员同步工作. 不要覆盖对方的变化. 维护历史的每一个版本 ...

  5. 【C】——如何生成静态库和动态库

    对于一个编译型语言,编译器工作时总要经过预处理.编译.链接等几个过程.以 C/C++ 为例:预处理器(cpp)将每个 .c/.cpp 文件中 #include 的头文件都合并到 .c/.cpp 文件中 ...

  6. windows下安装和配置多个版本的JDK

    https://jingyan.baidu.com/article/47a29f2474ba55c015239957.html 如何在windows下安装和配置多个版本的jdk,本文将带你在windo ...

  7. Matlab函数——std,std2与mean,mean2区别

    最近看代码,经常看到std,std2的用法,由于刚刚学习,网上搜索了下,没有找到解答,看了help,s = std(X,flag)s = std(X,flag,dim)  ,只告诉我们 flag,di ...

  8. Navi.Soft31.WinForm框架(含下载地址)

    1概述 1.1应用场景 尽管互联网高速发展,互联网软件也随之越来越多,但桌面应用程序在某些领域中还是不可替代,如MIS,ERP,CRM等软件产品,同时,这类软件均包括一些通用的功能,如:与数据库操作, ...

  9. Web服务端开发需要考虑的问题

    API设计 是否Restful. 首先需要清楚,Restful是一种风格而不是规范,不存在必须遵守的问题. Restful本质上是对HTTP API进行有效的分类. 分类是应该的,可以让API组织变得 ...

  10. Sword pcre库使用

    #include <stdlib.h> #include <string.h> #include "regularhelper.h" #include &q ...