This commit is contained in:
mikolajpaterka 2023-01-17 21:49:43 +01:00
parent 014cdb701b
commit cda9cf895f
3 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,9 @@ with open("ssh.txt", "r") as file:
ssh_key_text = file.read().strip()
#ssh_key = client.ssh_keys.create(name=ssh_name, public_key=ssh_key_text)
ssh_key = client.ssh_keys.get_by_name(ssh_name)
ssh_key = client.ssh_keys.get_by_name(ssh_name) or None
if not ssh_key:
ssh_key = client.ssh_keys.create(name=ssh_name, public_key=ssh_key_text)
print("Key: done")
server = r'''

View File

@ -1 +0,0 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKZuvJc3h9m/SzYB3a/t7VEPpssXow6IF0F0QP6pMHnj mikolajpaterka@Mikoajs-MacBook-Air.local

View File

@ -1 +0,0 @@
KccUEiddxtzGoLWSNC3V8tylq7MYHCjdnShtgasQ8jSbHqCjGoaa6Rq7yoz4uS23