diff --git a/ebcli/operations/sshops.py b/ebcli/operations/sshops.py index 9a5e48f23..e9a0b4e09 100644 --- a/ebcli/operations/sshops.py +++ b/ebcli/operations/sshops.py @@ -132,7 +132,7 @@ def ssh_into_instance(instance_id, keep_open=False, force_open=False, custom_ssh custom_ssh = custom_ssh.split() else: ident_file = _get_ssh_file(keypair_name) - custom_ssh = ['ssh', '-i', ident_file] + custom_ssh = ['ssh', '-i', ident_file, '-o', 'IdentitiesOnly yes'] custom_ssh.extend([user + '@' + ip])