This commit is contained in:
2021-05-12 21:19:00 +08:00
commit a3fdb08a52
5 changed files with 63 additions and 0 deletions

11
genkeys.py Normal file
View File

@@ -0,0 +1,11 @@
import os
from utils import load_users
users = load_users('./users.txt')
command = 'ssh-keygen -b 1024 -N "" -C "" -f {0}'
for user in users:
if not os.path.isfile(user):
this_command = command.format(user)
os.system(this_command)