Force password authentication
The SSHClient.connect method look_for_keys argument to ignore keys
in .ssh folder in Paramiko in Python when set to false.
Change-Id: Id406e938f13cd5b3cb604c0cfd9f62163fd1c2a3
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/ssh_utility.py b/ffdc/ssh_utility.py
index 37b9314..3a028e6 100644
--- a/ffdc/ssh_utility.py
+++ b/ffdc/ssh_utility.py
@@ -47,11 +47,11 @@
self.sshclient = paramiko.SSHClient()
# setting set_missing_host_key_policy() to allow any host
self.sshclient.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- # pk=paramiko.RSAKey.from_private_key(open('~/.ssh_pub/id_rsa.pub'))
# Connect to the server
self.sshclient.connect(hostname=self.hostname,
username=self.username,
- password=self.password)
+ password=self.password,
+ look_for_keys=False)
except (BadHostKeyException, AuthenticationException,
SSHException, NoValidConnectionsError, socket.error) as e: