Skip to content

Commit bbb7d79

Browse files
committed
Updated README and version
1 parent 5f36417 commit bbb7d79

File tree

3 files changed

+37
-59
lines changed

3 files changed

+37
-59
lines changed

README.md

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
99
## Introduction
1010

1111
A simple web application to be used as an ssh client to connect to your ssh servers. It is written in Python, base on tornado, paramiko and xterm.js.
12-
```
13-
+---------+ http +--------+ ssh +-----------+
14-
| browser | <==========> | webssh | <=======> | ssh server|
15-
+---------+ websocket +--------+ ssh +-----------+
16-
```
1712

1813
## Features
1914

@@ -31,6 +26,13 @@ A simple web application to be used as an ssh client to connect to your ssh serv
3126
![Terminal](https://github.com/huashengdun/webssh/raw/master/preview/terminal.png)
3227

3328

29+
### How it works
30+
```
31+
+---------+ http +--------+ ssh +-----------+
32+
| browser | <==========> | webssh | <=======> | ssh server|
33+
+---------+ websocket +--------+ ssh +-----------+
34+
```
35+
3436
### Requirements
3537

3638
* Python 2.7/3.4+
@@ -44,18 +46,6 @@ A simple web application to be used as an ssh client to connect to your ssh serv
4446
4. Input your data, submit the form.
4547

4648

47-
### Installation options
48-
49-
Install from the pypi repository, may not the latest version
50-
```
51-
pip install webssh
52-
```
53-
54-
Install from the github repository, always the latest version
55-
```
56-
pip install https://github.com/huashengdun/webssh/archive/master.zip
57-
```
58-
5949
### Server options
6050

6151
```bash
@@ -78,19 +68,10 @@ wssh --help
7868
### Use console
7969

8070
```javascript
81-
// set a new encoding for client to use
82-
wssh.set_encoding(encoding);
83-
84-
// reset encoding to use the default one
85-
wssh.reset_encoding();
86-
8771
// connect to your ssh server
8872
wssh.connect(hostname, port, username, password, privatekey);
8973

90-
// without an argument, wssh will use the form data to connect
91-
wssh.connect();
92-
93-
// define a mapping object
74+
// define a object for wssh
9475
var opts = {
9576
hostname: 'hostname',
9677
port: 'port',
@@ -100,6 +81,15 @@ var opts = {
10081
};
10182
wssh.connect(opts);
10283

84+
// without an argument, wssh will use the form data to connect
85+
wssh.connect();
86+
87+
// set a new encoding for client to use
88+
wssh.set_encoding(encoding);
89+
90+
// reset encoding to use the default one
91+
wssh.reset_encoding();
92+
10393
// send a command to the server
10494
wssh.send('ls -l');
10595
```

README.rst

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,6 @@ A simple web application to be used as an ssh client to connect to your
1010
ssh servers. It is written in Python, base on tornado, paramiko and
1111
xterm.js.
1212

13-
::
14-
15-
+---------+ http +--------+ ssh +-----------+
16-
| browser | <==========> | webssh | <=======> | ssh server|
17-
+---------+ websocket +--------+ ssh +-----------+
18-
1913
Features
2014
--------
2115

@@ -32,6 +26,15 @@ Preview
3226

3327
|Login| |Terminal|
3428

29+
How it works
30+
~~~~~~~~~~~~
31+
32+
::
33+
34+
+---------+ http +--------+ ssh +-----------+
35+
| browser | <==========> | webssh | <=======> | ssh server|
36+
+---------+ websocket +--------+ ssh +-----------+
37+
3538
Requirements
3639
~~~~~~~~~~~~
3740

@@ -45,21 +48,6 @@ Quickstart
4548
3. Open your browser, navigate to ``127.0.0.1:8888``
4649
4. Input your data, submit the form.
4750

48-
Installation options
49-
~~~~~~~~~~~~~~~~~~~~
50-
51-
Install from the pypi repository, may not the latest version
52-
53-
::
54-
55-
pip install webssh
56-
57-
Install from the github repository, always the latest version
58-
59-
::
60-
61-
pip install https://github.com/huashengdun/webssh/archive/master.zip
62-
6351
Server options
6452
~~~~~~~~~~~~~~
6553

@@ -85,19 +73,10 @@ Use console
8573

8674
.. code:: javascript
8775
88-
// set a new encoding for client to use
89-
wssh.set_encoding(encoding);
90-
91-
// reset encoding to use the default one
92-
wssh.reset_encoding();
93-
9476
// connect to your ssh server
9577
wssh.connect(hostname, port, username, password, privatekey);
9678
97-
// without an argument, wssh will use the form data to connect
98-
wssh.connect();
99-
100-
// define a mapping object
79+
// define a object for wssh
10180
var opts = {
10281
hostname: 'hostname',
10382
port: 'port',
@@ -107,6 +86,15 @@ Use console
10786
};
10887
wssh.connect(opts);
10988
89+
// without an argument, wssh will use the form data to connect
90+
wssh.connect();
91+
92+
// set a new encoding for client to use
93+
wssh.set_encoding(encoding);
94+
95+
// reset encoding to use the default one
96+
wssh.reset_encoding();
97+
11098
// send a command to the server
11199
wssh.send('ls -l');
112100

webssh/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
__version_info__ = (0, 3, 9)
1+
__version_info__ = (0, 4, 0)
22
__version__ = '.'.join(map(str, __version_info__))

0 commit comments

Comments
 (0)