mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-16 13:17:39 +00:00
[Update] 修改sshpass 引号引入密码,特殊字符处理
This commit is contained in:
parent
ef9e03c7ed
commit
814e6a7df8
@ -93,7 +93,7 @@ class JMSInventory(BaseInventory):
|
|||||||
|
|
||||||
if gateway.password:
|
if gateway.password:
|
||||||
proxy_command_list.insert(
|
proxy_command_list.insert(
|
||||||
0, "sshpass -p {}".format(gateway.password)
|
0, "sshpass -p '{}'".format(gateway.password)
|
||||||
)
|
)
|
||||||
if gateway.private_key:
|
if gateway.private_key:
|
||||||
proxy_command_list.append("-i {}".format(gateway.private_key_file))
|
proxy_command_list.append("-i {}".format(gateway.private_key_file))
|
||||||
|
Loading…
Reference in New Issue
Block a user