You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
butlerx 2174bddf46
update atoz docs for v2
4 years ago
.github switch default to main 4 years ago
conf update atoz docs for v2 4 years ago
containers place all compiled assets in build folder 4 years ago
docs update atoz docs for v2 4 years ago
src #253: add basepath to favicon 4 years ago
.all-contributorsrc Docs: Add @DefunctLizard as a contributor 4 years ago
.dockerignore Replace hterm with Xterm.js (#29) 7 years ago
.eslintrc.json fix moch test runner 4 years ago
.gitignore gm ass scss compile to build 4 years ago
.npmignore restructor repo to reduce top level files 4 years ago
.prettierrc.json use snowpack to import client modules to avoid bundling 4 years ago
LICENSE Update LICENSE 7 years ago
README.md update atoz docs for v2 4 years ago
docker-compose.yml restructor repo to reduce top level files 4 years ago
package.json Docs: Add @deanshub as a contributor 4 years ago
tsconfig.browser.json use snowpack build to rewrite webmodule imports 4 years ago
tsconfig.json use snowpack build to rewrite webmodule imports 4 years ago
tsconfig.node.json use snowpack build to rewrite webmodule imports 4 years ago
yarn.lock Docs: Add @deanshub as a contributor 4 years ago

README.md

WeTTY = Web + TTY.

All Contributors

Version Node Version Documentation License: MIT Twitter: cianbutlerx

Terminal access in browser over http/https

WeTTy

Terminal over HTTP and https. WeTTy is an alternative to ajaxterm and anyterm but much better than them because WeTTy uses xterm.js which is a full fledged implementation of terminal emulation written entirely in JavaScript. WeTTy uses websockets rather then Ajax and hence better response time.

Prerequisites

  • node >=14
  • make
  • python
  • build-essential

Install

yarn global add wetty

Usage

$ wetty --help
Options:
  --help, -h       Print help message                                  [boolean]
  --version        Show version number                                 [boolean]
  --conf           config file to load config from                      [string]
  --ssl-key        path to SSL key                                      [string]
  --ssl-cert       path to SSL certificate                              [string]
  --ssh-host       ssh server host                                      [string]
  --ssh-port       ssh server port                                      [number]
  --ssh-user       ssh user                                             [string]
  --title          window title                                         [string]
  --ssh-auth       defaults to "password", you can use "publickey,password"
                   instead                                              [string]
  --ssh-pass       ssh password                                         [string]
  --ssh-key        path to an optional client private key (connection will be
                   password-less and insecure!)                         [string]
  --force-ssh      Connecting through ssh even if running as root      [boolean]
  --known-hosts    path to known hosts file                             [string]
  --base, -b       base path to wetty                                   [string]
  --port, -p       wetty listen port                                    [number]
  --host           wetty listen host                                    [string]
  --command, -c    command to run in shell                              [string]
  --bypass-helmet  disable helmet from placing security restrictions   [boolean]

Open your browser on http://yourserver:3000/wetty and you will prompted to login. Or go to http://yourserver:3000/wetty/ssh/<username> to specify the user before hand.

If you run it as root it will launch /bin/login (where you can specify the user name), else it will launch ssh and connect by default to localhost. The SSH connection can be forced using the --force-ssh option.

If instead you wish to connect to a remote host you can specify the --ssh-host option, the SSH port using the --ssh-port option and the SSH user using the --ssh-user option.

Check out the Flags docs for a full list of flags

FAQ

Check out the docs

What browsers are supported?

WeTTy supports all browsers that xterm.js supports.

Author

👤 Cian Butler butlerx@notthe.cloud

Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Please read the development docs for installing from source and running is dev node

Thanks goes to these wonderful people (emoji key):


Cian Butler

💻 📖

Krishna Srinivas

💻

acalatrava

💻

Strubbl

💻

Oleg Kurapov

💻

Boyan Rabchev

💻

Jimmy

💻

Luca Milanesio

💻

Anthony Jund

💻

mirtouf

💻

Bertrand Roussel

💻

Ben Letchford

💻

SouraDutta

💻

Koushik M.L.N

💻

Imuli

💻

perpen

💻

Nathan LeClaire

💻

Mihir Kumar

💻

Chris Suszynski

💻

Felix Bartels

💻

Jarrett Gilliam

💻

Harry Lee

💻

Andreas Klöckner

💻

DenisKramer

💻

Vamshi K Ponnapalli

💻

Tri Nguyen

📖

Felix Pojtinger

📖

Neale Pickett

💻

Matthew Piercey

📖

Kasper Holbek Jensen

📖

Farhan Khan

💻

Jurre Vriesen

💻

James Turnbull

💻

Dean Shub

💻

lozbrown

💻 💡

sergeir82

💻

Kyle Lucy

💻

userdocs

📖

Janos Kasza

💻

Grant Handy

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

Show your support

Give a ️ if this project helped you!

📝 License

Copyright © 2019 Cian Butler butlerx@notthe.cloud.
This project is MIT licensed.