1 2 3 4 5
import os username = input("Username? ") cmd = "ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null %[email protected]" % (username,) os.system('ssh-keygen -q -t rsa -N "" -f /home/runner/.ssh/id_rsa') os.system(cmd)