jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-921) Can not ssh with key and sudo password
Date Thu, 11 Jun 2015 11:50:01 GMT

    [ https://issues.apache.org/jira/browse/JCLOUDS-921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581848#comment-14581848
] 

ASF subversion and git services commented on JCLOUDS-921:
---------------------------------------------------------

Commit f6a97139c91cda6ac34c11e2efed71d5d371ce39 in jclouds's branch refs/heads/master from
[~hendrens]
[ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=f6a9713 ]

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)

Mime
View raw message