There is no dependency on putty or any other scp/ssh programs. The scp task 
uses jsch, which is a java implementation of ssh2. You should set trust="true" 
in your scp task. 

<scp file="myfile.txt" trust="true"
 todir="user:[EMAIL PROTECTED]:/home/user"/>


If that does not fix it, I would look at the server. What version of SSH Server 
are you running? The sshexec and scp tasks only support SSH2.

-Rob Anderson

> -----Original Message-----
> From: Rebhan, Gilbert [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 10, 2004 12:51 AM
> To: ant_user (E-Mail)
> Subject: scp-Task win2k > AIX
> 
> 
> Hi,
> 
> Env = Win2k, j2sdk 1.4.2_05, Ant 1.6.2 and jsch 0.1.16 in Ant/lib
> 
> 
> when trying to use the scptask with a litte test
> 
> ...
> <scp file="myfile.txt" 
> todir="user:[EMAIL PROTECTED]:/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.
> 
> Are there any other requirements on my windowsmachine f.e. do 
> i have to install Putty or similar tool
> first, before i may use the scptask ?!
> 
> Thanks for any hint!
> 
> Regards, Gilbert
> 
> 
>  
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to