duplicati / ngclient

Angular Client for Duplicati
MIT License
1 stars 0 forks source link

The SSH page is missing a Test button #28

Closed kenkendk closed 3 weeks ago

kenkendk commented 1 month ago

The FE can call Test on the backend.

If the call fails with HostKeyException the field ReportedHostKey contains the current host key. The AcceptedHostKey represents the currently accepted key.

If AcceptedHostKey is empty, the FE should suggest adding --ssh-fingerprint with the given ReportedHostKey. If AcceptedHostKey is different than ReportedHostKey, the user should be shown a "Host Key has changed" warning explaining that this could be a MITM attack and be offered to replace the --ssh-fingerprint value with the ReportedHostKey value. Both errors contains an error message that can be shown to the user.

If the call fails with FolderNotFound, the FE should suggest to create the folder. If the user consents, the FE should call CreateFolder and create the backend.

sp90 commented 3 weeks ago

@kenkendk by AcceptedHostKey do you mean --ssh-accept-any-fingerprints

And if there is a ReportedHostKey miss match is that against the --ssh-fingerprint and previously accepted fingerprints?