[
https://issues.apache.org/jira/browse/JCLOUDS-921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581844#comment-14581844
]
ASF subversion and git services commented on JCLOUDS-921:
---------------------------------------------------------
Commit f88acd67c0b26742b1f50d0bbd57a6733060ad2c in jclouds's branch
refs/heads/1.9.x from [~hendrens]
[ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=f88acd6 ]
JCLOUDS-921 prioritise key over password in SSHClientConnection
>From ticket:
If keyboard interactive login is not allowed on the box but the user also
requires a sudo password the ssh fails as it prioritises the password.
If you remove the password then the sudo fails in the SudoAwareInitManager.
It would seem better to prioritise the key over the password in
SSHClientConnection or possibly try both if they are both present, and the
first fails.
This commit swaps the order of the if else check to use the ssh key if present.
> Can not ssh with key and sudo password
> --------------------------------------
>
> Key: JCLOUDS-921
> URL: https://issues.apache.org/jira/browse/JCLOUDS-921
> Project: jclouds
> Issue Type: Bug
> Affects Versions: 1.9.0
> Reporter: Stuart Hendren
>
> If keyboard interactive login is not allowed on the box but the user also
> requires a sudo password the ssh fails as it prioritises the password.
> If you remove the password then the sudo fails in the SudoAwareInitManager.
> It would seem better to prioritise the key over the password in
> SSHClientConnection or possibly try both if they are both present, and the
> first fails.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)