• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

ttyd: ttyd is a simple command-line tool for sharing terminal over the web

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

ttyd

开源软件地址:

https://gitee.com/zhangzq/ttyd

开源软件介绍:

ttyd - Share your terminal over the web backend frontend

ttyd is a simple command-line tool for sharing terminal over the web.

screenshot

Features

  • Built on top of Libwebsockets with libuv for speed
  • Fully-featured terminal based on Xterm.js with CJK and IME support
  • Graphical ZMODEM integration with lrzsz support
  • SSL support based on OpenSSL
  • Run any custom command with options
  • Basic authentication support and many other custom options
  • Cross platform: macOS, Linux, FreeBSD/OpenBSD, OpenWrt, Windows

Installation

Install on macOS

Install with homebrew:

brew install ttyd

Install on Linux

  • Binary version (recommended): download from the releases page.

  • Build from source (debian/ubuntu):

    sudo apt-get install build-essential cmake git libjson-c-dev libwebsockets-devgit clone https://github.com/tsl0922/ttyd.gitcd ttyd && mkdir build && cd buildcmake ..make && make install

    You may also need to compile/install libwebsockets from source if the libwebsockets-dev package is outdated.

  • Install on Gentoo: clone the repo and follow the directions here.

Install on Windows

Compile on Windows.

Install on OpenWrt

opkg install ttyd

Usage

Command-line Options

ttyd is a tool for sharing terminal over the webUSAGE:    ttyd [options] <command> [<arguments...>]VERSION:    1.6.1OPTIONS:    -p, --port              Port to listen (default: 7681, use `0` for random port)    -i, --interface         Network interface to bind (eg: eth0), or UNIX domain socket path (eg: /var/run/ttyd.sock)    -c, --credential        Credential for Basic Authentication (format: username:password)    -u, --uid               User id to run with    -g, --gid               Group id to run with    -s, --signal            Signal to send to the command when exit it (default: 1, SIGHUP)    -a, --url-arg           Allow client to send command line arguments in URL (eg: http://localhost:7681?arg=foo&arg=bar)    -R, --readonly          Do not allow clients to write to the TTY    -t, --client-option     Send option to client (format: key=value), repeat to add more options    -T, --terminal-type     Terminal type to report, default: xterm-256color    -O, --check-origin      Do not allow websocket connection from different origin    -m, --max-clients       Maximum clients to support (default: 0, no limit)    -o, --once              Accept only one client and exit on disconnection    -B, --browser           Open terminal with the default system browser    -I, --index             Custom index.html path    -b, --base-path         Expected base path for requests coming from a reverse proxy (eg: /mounted/here)    -6, --ipv6              Enable IPv6 support    -S, --ssl               Enable SSL    -C, --ssl-cert          SSL certificate file path    -K, --ssl-key           SSL key file path    -A, --ssl-ca            SSL CA file path for client certificate verification    -d, --debug             Set log level (default: 7)    -v, --version           Print the version and exit    -h, --help              Print this text and exitVisit https://github.com/tsl0922/ttyd to get more information and report bugs.

Read the example usage on the wiki.

Browser Support

Modern browsers, See Browser Support.

Alternatives


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap