mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 06:46:24 +00:00
[Update] 创建Host Key
This commit is contained in:
@@ -71,7 +71,7 @@ def auto_generate_terminal_host_key(sender, **kwargs):
|
||||
try:
|
||||
if Setting.objects.filter(name='TERMINAL_HOST_KEY').exists():
|
||||
return
|
||||
except ProgrammingError:
|
||||
except:
|
||||
return
|
||||
private_key, public_key = ssh_key_gen()
|
||||
value = json.dumps(private_key)
|
||||
|
Reference in New Issue
Block a user