Tip O' the day : SSH on Windows

My fellow readers might remember my problems with SSH which have often bothered me. I faced again a similar issue:

I wanted to upload a new Groovy snapshot Jar, before we release RC-1 next week. As a Groovy despot, with the help of some wonderful hausmates (particularly Trygve and Bob) I managed to authenticate myself with ssh-agent + ssh-add on the Codehaus server, so that maven doesn't require me to enter my passphrase for my key.

For the record, I'm using Cygwin on a windows XP box, with OpenSSH installed.

Here is the trick, in a cygwin-bash terminal type:

eval `ssh-agent`
maven -Dmaven.username=xxxx yourGoal

And I was done...


© 2012 Guillaume Laforge | The views and opinions expressed here are mine and don't reflect the ones from my employer.