From dca4b21d4af1e9a1e68568427e65165e4ffc104e Mon Sep 17 00:00:00 2001
From: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Date: Tue, 13 Dec 2016 12:54:39 +0100
Subject: [PATCH] Don't force a keyfile

When the keyfile passed to paramiko doesn't exist connecting to the
remote device will fail, to fix that simply remove it. Specifying it has
very little value given paramiko should search for private keys in .ssh
by default.

Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
Reviewed-by: Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D5251
---
 tools/ade | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tools/ade b/tools/ade
index fa1bdb2..1674568 100755
--- a/tools/ade
+++ b/tools/ade
@@ -192,8 +192,7 @@ class Device:
         ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
         ssh.connect(self.host, port=self.port,
                     allow_agent=False, look_for_keys=False, gss_auth=False,
-                    username=self.user, password=self.password,
-                    key_filename=os.path.expanduser("~/.ssh/apertis.ssh"))
+                    username=self.user, password=self.password)
         return ssh
 
     def _exec(self, *args):
-- 
GitLab