mirror of https://github.com/jumpserver/jumpserver
[Bugfix] 修改gateway port
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