Added ssh support for Haiku

This commit is contained in:
2022-05-15 17:42:14 -04:00
parent 337e68d088
commit 4258ad85ab
+2
View File
@@ -156,6 +156,8 @@ def tweak(): # runs configuration wizard
'\n\nSync support requires a unique ssh key. Would you like to have this automatically '
'generated? (Y/n) '))
if _ssh_gen.lower() != 'n':
if uname()[0] == 'Haiku':
Path(f"{path.expanduser('~')}/.ssh").mkdir(0o700, exist_ok=True)
system('ssh-keygen -t ed25519 -f ~/.ssh/sshyp')
else:
print(f"\nEnsure that the key file you are using is located at {path.expanduser('~/.ssh/sshyp')}")