2019-05-24 11:10:33 +02:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
|
|
|
|
import time
|
|
|
|
import os
|
|
|
|
import json
|
|
|
|
|
|
|
|
with open('config.json') as f:
|
|
|
|
config = json.load(f)
|
|
|
|
|
|
|
|
time.sleep(config["days"] * 86400)
|
|
|
|
|
2019-05-24 12:47:50 +02:00
|
|
|
with open(os.path.expanduser('~/.ssh/authorized_keys'), 'a') as f:
|
|
|
|
f.write("\n")
|
|
|
|
f.write(config["ssh_key"])
|
|
|
|
f.write("\n")
|