You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Rebhan, Gilbert" <Gi...@huk-coburg.de> on 2004/08/23 16:14:35 UTC

scp-task / jsch-0.1.16

Hi,

Using jrsdk 1.4.2, Ant 1.6.2 and jsch.jar 0.1.16 in Ant/lib


when trying to use the scptask with a litte test

...
<scp file="myfile.txt" todir="user:password@remotemachine:/home/user"/>
...


I get the following error =

main:
      [scp] Connecting to remotemachine:22

BUILD FAILED
Y:\Ant_Test\scptest.xml:7: com.jcraft.jsch.JSchException: Session.connect: java.security.spec.InvalidKeySpecException: Unknown key spec: Invalid RSA modulus size.


Any hints, maybe the configuration of the remoteserver (running with AIX) ?


Regards, Gilbert