mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-05 16:47:14 -04:00
Added ssh support for Haiku
This commit is contained in:
@@ -156,6 +156,8 @@ def tweak(): # runs configuration wizard
|
|||||||
'\n\nSync support requires a unique ssh key. Would you like to have this automatically '
|
'\n\nSync support requires a unique ssh key. Would you like to have this automatically '
|
||||||
'generated? (Y/n) '))
|
'generated? (Y/n) '))
|
||||||
if _ssh_gen.lower() != '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')
|
system('ssh-keygen -t ed25519 -f ~/.ssh/sshyp')
|
||||||
else:
|
else:
|
||||||
print(f"\nEnsure that the key file you are using is located at {path.expanduser('~/.ssh/sshyp')}")
|
print(f"\nEnsure that the key file you are using is located at {path.expanduser('~/.ssh/sshyp')}")
|
||||||
|
|||||||
Reference in New Issue
Block a user