From 3537565ffee64f92348cca8dc14c310844e48d86 Mon Sep 17 00:00:00 2001
From: hktalent <3135773@qq.com>
Date: Sat, 19 Jan 2019 13:15:49 +0800
Subject: [PATCH] =?UTF-8?q?fix=20port=EF=BC=8Cio.of=20privateKey?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
README.md | 36 +
app/client/public/client.htm | 4 +
app/client/public/webssh2.bundle.js | 2 +-
app/client/src/client.htm | 4 +
app/client/src/js/index.js | 6 +-
app/config.json | 1 +
app/index.js | 19 +-
app/package-lock.json | 3857 ++++++---------------------
app/package.json | 52 +-
app/server/app.js | 70 +-
app/server/socket.js | 246 +-
11 files changed, 1034 insertions(+), 3263 deletions(-)
diff --git a/README.md b/README.md
index a438dcd..834b06b 100644
--- a/README.md
+++ b/README.md
@@ -221,6 +221,42 @@ Clicking `Start logging` on the status bar will log all data to the client. A `D
# Example:
http://localhost:2222/ssh/host/192.168.1.1?port=2244&header=My%20Header&color=red
+http://127.0.0.1:2222/ssh/host/165.149.12.16?host=165.149.12.16&user=root&port=54321
+
+# how use
+```
+WebSSH2/app#cat config.json|grep privateKey
+ "privateKey":"/.ssh/id_rsa",
+# create privateKey
+$ ssh-keygen -t rsa
+# cp ~/.ssh/id_rsa.pub to server ~/.ssh/authorized_keys
+# server:
+chmod 600 ~/.ssh/authorized_keys
+```
# Tips
* If you want to add custom JavaScript to the browser client you can either modify `./src/client.html` and add a **