Access repository using private key

Added by Andrew Osipenko 597 days ago

Hello friends,

Usually I access external repository using plink together with private key.
For this purpose I have SVN_SSH environment variable configured with the following batch file:
plink -l osa -i "D:\.ssh\osa_ssh2.ppk" %*

Is it possible to access this repository using SupoSE?

I tried
supose scan --url svn+ssh://osa@develop.jcatalog.com/var/svn/myrepo --create --index opc-trunk.index

but it does not work.
It seems that SupoSE does not know anything about my private key.

Replies

RE: Access repository using private key - Added by Redmine Admin 596 days ago

Hi Andrew,

first thank you for trying SupoSE...

The problem here simply is you have to give the information to the JVM which works a little bit different:
You have to define the following environment variabl with the following contents:
export JAVA_OPTS=-Dsvnkit.ssh2.key=/path/to/private/key/file \
-Dsvnkit.ssh2.username=userName \ 
-Dsvnkit.ssh2.passphrase=optionalPassphrase \
-Dsvnkit.ssh2.password=userpassword \
-Dsvnkit.ssh2.port=optionalPort
and after that you can call supose as above.
Than it should work...(Crossing fingers ;-))...

May be you can modify the supose script file itself if it is needed.

If not file in an issue...here.

Kind regards
Karl Heinz Marbaise

RE: Access repository using private key - Added by Andrew Osipenko 596 days ago

Thank you! It works!