mirror of
https://github.com/naruxde/revpicommander.git
synced 2025-11-08 16:43:53 +01:00
Ignore ssh known_hosts from home directory, use own
This commit is contained in:
@@ -13,7 +13,7 @@ import select
|
|||||||
from socketserver import BaseRequestHandler, ThreadingTCPServer
|
from socketserver import BaseRequestHandler, ThreadingTCPServer
|
||||||
from threading import Thread
|
from threading import Thread
|
||||||
|
|
||||||
from paramiko.client import SSHClient, WarningPolicy
|
from paramiko.client import MissingHostKeyPolicy, SSHClient
|
||||||
from paramiko.rsakey import RSAKey
|
from paramiko.rsakey import RSAKey
|
||||||
from paramiko.ssh_exception import PasswordRequiredException
|
from paramiko.ssh_exception import PasswordRequiredException
|
||||||
from paramiko.transport import Transport
|
from paramiko.transport import Transport
|
||||||
@@ -71,8 +71,7 @@ class SSHLocalTunnel:
|
|||||||
self._th_server = Thread()
|
self._th_server = Thread()
|
||||||
|
|
||||||
self._ssh_client = SSHClient()
|
self._ssh_client = SSHClient()
|
||||||
self._ssh_client.load_system_host_keys()
|
self._ssh_client.set_missing_host_key_policy(MissingHostKeyPolicy())
|
||||||
self._ssh_client.set_missing_host_key_policy(WarningPolicy())
|
|
||||||
|
|
||||||
self._ssh_transport = None # type: Transport
|
self._ssh_transport = None # type: Transport
|
||||||
self._forward_server = None # type: ThreadingTCPServer
|
self._forward_server = None # type: ThreadingTCPServer
|
||||||
|
|||||||
Reference in New Issue
Block a user