webssh

Web based ssh client https://github.com/huashengdun/webssh webssh.huashengdun.org/
git clone http://git.hanabi.in/repos/webssh.git
Log | Files | Refs | README | LICENSE

commit 7b715bea17b7c99551a35003856939b7941b7d6f
parent 3165cf23997e0bb4b150156f19939b6a35088613
Author: Sheng <webmaster0115@gmail.com>
Date:   Mon, 23 Apr 2018 18:14:42 +0800

Fixed AutoAddPolicy

Diffstat:
Mwebssh/policy.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/webssh/policy.py b/webssh/policy.py @@ -56,7 +56,8 @@ class AutoAddPolicy(paramiko.client.MissingHostKeyPolicy): lock = threading.Lock() def is_missing_host_key(self, client, hostname, key): - k = client._host_keys.lookup(hostname) + k = client._system_host_keys.lookup(hostname) or \ + client._host_keys.lookup(hostname) if k is None: return True host_key = k.get(key.get_name(), None)