initial
This commit is contained in:
11
genkeys.py
Normal file
11
genkeys.py
Normal 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)
|
||||
Reference in New Issue
Block a user