Skip to content

New implementation of ssh-agent (second attempt)#17

Merged
jglick merged 9 commits intojenkinsci:masterfrom
janvrany:pr2
Feb 10, 2017
Merged

New implementation of ssh-agent (second attempt)#17
jglick merged 9 commits intojenkinsci:masterfrom
janvrany:pr2

Conversation

@janvrany
Copy link
Contributor

This is a second attempt to provide an alternative implementation of SSH agent by using
(remote) hosts native ssh-agent.

It's a resurrection of earlier attempt made by @Mi-La some time ago - see PR2. The changes are following:

  • @Mi-La's changes are rebased on top of current master
  • Code updated to catch up with API changes
  • Implemented @jglick suggestion made in original [PR2[1 to use Launcher interface to check whether ssh-agent is installed.

@lkraider
Copy link

It seems the test don't like the new ssh flag:

Bad protocol 2 host key algorithms '+ssh-dss'

@janvrany
Copy link
Contributor Author

Yeah, it does not. The question is how to solve this problem. I would have hoped CLI interface o older (open)ssh would remain compatible. Apparently not. So I need to hack tests again and only include the option iff client is >= 7.0. Sigh.

There's another problem though - sshAgentAvailableAfterRestart is broken. This also needs further investigation...

Older OpenSSH implementations does not support the `...=+ssh-dss` syntax
to add a key alg (mind the `+`),
So use `...=ssh-dss` to make tests working also on pre-7.0 versions of
OpenSSH.

This is an amendment of commit 66bae3b.
@jglick
Copy link
Member

jglick commented Feb 8, 2017

This also needs further investigation...

Fixed that in #18 and am working on other cleanup and testing.

@jglick jglick merged commit 9b7c44a into jenkinsci:master Feb 10, 2017
@janvrany
Copy link
Contributor Author

@jglick: Thank you so much for finishing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants