mirror of
https://github.com/naruxde/revpicommander.git
synced 2026-10-01 00:14:29 +02:00
Ignore ssh known_hosts from home directory, use own
This commit is contained in:
1 parent
95d3094623
commit
7262ad7e1a
1 file changed
+2
-3
@@ -13,7 +13,7 @@ import select
|
||||
from socketserver import BaseRequestHandler, ThreadingTCPServer
|
||||
from threading import Thread
|
||||
|
||||
from paramiko.client import SSHClient, WarningPolicy
|
||||
from paramiko.client import MissingHostKeyPolicy, SSHClient
|
||||
from paramiko.rsakey import RSAKey
|
||||
from paramiko.ssh_exception import PasswordRequiredException
|
||||
from paramiko.transport import Transport
|
||||
@@ -71,8 +71,7 @@ class SSHLocalTunnel:
|
||||
self._th_server = Thread()
|
||||
|
||||
self._ssh_client = SSHClient()
|
||||
self._ssh_client.load_system_host_keys()
|
||||
self._ssh_client.set_missing_host_key_policy(WarningPolicy())
|
||||
self._ssh_client.set_missing_host_key_policy(MissingHostKeyPolicy())
|
||||
|
||||
self._ssh_transport = None # type: Transport
|
||||
self._forward_server = None # type: ThreadingTCPServer
|
||||
|
||||
Reference in new issue
Block a user