mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-07 01:04:03 +00:00
[Bugfix] 修改gateway port
This commit is contained in:
parent
01afcf701c
commit
f8c2a445f7
@ -54,7 +54,8 @@ def test_gateway_connectability(gateway):
|
|||||||
proxy.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
proxy.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||||
|
|
||||||
try:
|
try:
|
||||||
proxy.connect(gateway.ip, username=gateway.username,
|
proxy.connect(gateway.ip, gateway.port,
|
||||||
|
username=gateway.username,
|
||||||
password=gateway.password,
|
password=gateway.password,
|
||||||
pkey=gateway.private_key_obj)
|
pkey=gateway.private_key_obj)
|
||||||
except(paramiko.AuthenticationException,
|
except(paramiko.AuthenticationException,
|
||||||
|
Loading…
Reference in New Issue
Block a user