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.
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.