Skip to content

Commit

Permalink
Fix typo and wording
Browse files Browse the repository at this point in the history
  • Loading branch information
NI committed Sep 27, 2019
1 parent 9e82554 commit 512e410
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Sshwifty Web SSH Client
# Sshwifty Web SSH & Telnet Client

Sshwifty is a SSH client that provides a web interface. It can be deployed on
your computer or server, so you can access SSH servers via any device with a
**Sshwifty is a SSH and Telnet connector made for Web.** It can be deployed on
your computer or server to provide SSH and Telnet access interface to any
compatible (standard) web browser.

![Web Interface](Screenshot.png)
Expand All @@ -14,16 +14,16 @@ compatible (standard) web browser.

Compiled binaries can be found at the [release] section of the page.

Please be noted that those binaries was generated by an automatic proccess, and
Please be advised that those binaries is generated by an automatic proccess,
the author of this project will NOT verify them. You have to try it at your owk
risk.

[release]: https://github.com/niruix/sshwifty/releases

### Docker Image

If [Docker] is installed on your machine, then you can use our Docker image by
executing following command:
If [Docker] is installed on your machine, you may use our prebuild Docker Image
by executing following command:

```
$ docker run --detach \
Expand All @@ -33,9 +33,9 @@ $ docker run --detach \
niruix/sshwifty:latest
```

If you want to use TLS (HTTPS) with the Docker image and don't want to setup
volumes, you can use `SSHWIFTY_DOCKER_TLSCERT` and `SSHWIFTY_DOCKER_TLSCERTKEY`
environment variables when starting the container:
When TLS is desired and you don't want to setup Docker Volumes, you can use
`SSHWIFTY_DOCKER_TLSCERT` and `SSHWIFTY_DOCKER_TLSCERTKEY` environment variables
to import credential files to the container and automatically apply them:

```
$ openssl req \
Expand All @@ -56,14 +56,13 @@ located on the machine which the `docker run` command will be executed.

### Compile from source code (Recommanded if you're a developer)

In order to use the source code, you need to install following tools:
Following tools is required in order to build the software from source code:

- `git` to download the source code
- `npm` to compile front-end application
- `go` to compile back-end application
- `node` and `npm` to build front-end application
- `go` to build back-end application

After installing those tools, run following command to download the code to your
computer, and start the build proccess:
To start the build process, execute:

```
$ git clone https://github.com/niruix/sshwifty
Expand All @@ -72,9 +71,12 @@ $ npm install
$ npm run build
```

If succeed, you will found the newly generated `sshwifty` binary under current
When done, you can found the newly generated `sshwifty` binary inside current
working directory.

Notice: `Dockerfile` contains the entire build procedure of this software.
Please refer to it when you encountered any compile/build related problem.

### Deploy on the cloud

To deploy this project onto the cloud, Google App Engine or Heroku for example,
Expand All @@ -83,16 +85,19 @@ deploying it.

`npm run generate` command will generate all static files and automatically
call `go generate ./...` to bind those static files directly into program source
code. You need those generated source code to get application to function.
code. And you need those generated source code to get the software to function.

Trying to deploy ungenerated code directly to cloud will lead to failure, as
required source code is missing.

Also keep in mind, if the cloud deployment process is `git` based, you may have
to modify `.gitignore` file in order to allow all required files to be uploaded.

## Configure

Sshwifty can be configured though either file or environment variables. By
Sshwifty can be configured through either file or environment variables. By
default, the configuration loader will try to load file from default paths
first, then try environment variables.
first, when failed, environment variables will be used.

You can also specify your own configuration file by setting `SSHWIFTY_CONFIG`
environment variable. For example:
Expand All @@ -101,8 +106,8 @@ environment variable. For example:
$ SSHWIFTY_CONFIG=./sshwifty.conf.json ./sshwifty
```

After that, Sshwifty will try to load the configuration from file
`./sshwifty.conf.json`, and will never reach for other environment variables.
This way, Sshwifty will try to load the configuration from file
`./sshwifty.conf.json`, and never reach for other environment variables.

### Configuration file

Expand Down Expand Up @@ -246,7 +251,7 @@ time on both the client and the server with a trusted time server.

### Why I got error "TypeError: Cannot read property 'importKey' of undefined"

It's usually because your web browser is not support WebCrypt API, or the
It's usually because your web browser does not support WebCrypt API, or the
support has been disabled.

If you're using Google Chrome, please use HTTPS when connect to Sshwifty. Chrome
Expand Down

0 comments on commit 512e410

Please sign in to comment.