4 vol 1
This commit is contained in:
parent
014cdb701b
commit
cda9cf895f
@ -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'''
|
||||
|
@ -1 +0,0 @@
|
||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKZuvJc3h9m/SzYB3a/t7VEPpssXow6IF0F0QP6pMHnj mikolajpaterka@Mikoajs-MacBook-Air.local
|
@ -1 +0,0 @@
|
||||
KccUEiddxtzGoLWSNC3V8tylq7MYHCjdnShtgasQ8jSbHqCjGoaa6Rq7yoz4uS23
|
Loading…
Reference in New Issue
Block a user