Resolver.ssh using ssk keyfile + password prompt does not work

197 views
Skip to first unread message

fmpwizard

unread,
Apr 30, 2012, 1:30:28 PM4/30/12
to simple-b...@googlegroups.com
Hi,

At work we have something like this on a build file:

  val cloudRepo = Resolver.ssh("work repo", ivyRepo,22)(Resolver.ivyStylePatterns) as ("ivy", Path.userHome / ".ssh" / "id_rsa") withPermissions("0755")


the idea is to connect using ssh on port 22 to the server in val ivyRepo using the username ivy  , my ssh key file.

The problem is that if my ssh key requires a password, I get a popup asking for it, no problem, I enter my password for the key, but the popup comes back again.
I think the problem is that my real user on my laptop is diego.medina, but to ssh to my server I use   ivy, like:



that works fine, but the ivy popup asks for user and password, but then I think it tries to ssh like


which of curse fails.

Does anyone have any solutions?

  Thanks

   Diego

Ray Racine

unread,
May 1, 2012, 2:23:42 PM5/1/12
to simple-b...@googlegroups.com
I think what you are looking to do here is use "ssh-agent".   There is plenty of googleage on it.  In essence, you add your key to ssh-agent, for which you will prompted the key decrypt password, after that ssh-agent will provide the key as needed without the continued prompting.  This is completely an ssh suite behavior and is outside of SBT's control.



--
You received this message because you are subscribed to the Google Groups "simple-build-tool" group.
To view this discussion on the web visit https://groups.google.com/d/msg/simple-build-tool/-/80KRwNoMv-UJ.
To post to this group, send email to simple-b...@googlegroups.com.
To unsubscribe from this group, send email to simple-build-t...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/simple-build-tool?hl=en.

ijuma

unread,
May 1, 2012, 5:44:58 PM5/1/12
to simple-b...@googlegroups.com
On Tuesday, 1 May 2012 19:23:42 UTC+1, Ray Racine wrote:
I think what you are looking to do here is use "ssh-agent".   There is plenty of googleage on it.  In essence, you add your key to ssh-agent, for which you will prompted the key decrypt password, after that ssh-agent will provide the key as needed without the continued prompting.  This is completely an ssh suite behavior and is outside of SBT's control.

This doesn't work with SBT since it relies on Ivy which relies on JSch which doesn't support ssh-agent (at least in its default configuration). Maven, on the other hand, does the right thing in this case.

Best,
Ismael

ijuma

unread,
May 1, 2012, 5:48:56 PM5/1/12
to simple-b...@googlegroups.com
On Monday, 30 April 2012 18:30:28 UTC+1, fmpwizard wrote:
that works fine, but the ivy popup asks for user and password, but then I think it tries to ssh like

Coincidentally I ran into a similar issue today. In my case, the prompt worked for a dsa key but not for a rsa key. The username was the same for both and I tested that the passphrase was correct by using plain ssh. No idea what the real problem is, but SBT has always had unreliable support for SSH since it relies on Ivy. I moved away from it in the past due to that and my experiment today reinforced that belief.

Best,
Ismael
Reply all
Reply to author
Forward
0 new messages