File backintime-ssh-agent_only_if_password.patch of Package backintime

Index: backintime-1.1.8/common/sshtools.py
===================================================================
--- backintime-1.1.8.orig/common/sshtools.py
+++ backintime-1.1.8/common/sshtools.py
@@ -105,7 +105,11 @@ class SSH(mount.MountControl):
                            %{'path': self.private_key_file},
                            self)
             self.private_key_fingerprint = self.private_key_file
-        self.unlock_ssh_agent()
+
+        # ssh without password makes only sense if you have enabled passwordless
+        # ssh keys.  In this case there is no need to use the keyring at all.
+        if not self.password == None:
+            self.unlock_ssh_agent()
 
     def _mount(self):
         """mount the service"""