Unfortunately it doesn't work... I ddidn't used keyfile param because I don't knoww how using it and how generating keys... I tried with trust = true but nothing...
I'm angry because scp works fine, and so I don't understand why sshexec should'nt work... Finally in my server I created a shared folder with ALL permissions enabled for everyone, and in this way I can use the simple mkdir but I'd prefer using sshexec... Thanks anyway, best regards Raffaele Reinhardt Christiansen wrote: > > > > Raffaele wrote: >> Hi all, >> >> I'm running ANT from Maven, and I would like to create some directory on >> a >> server. >> I have seen scp task which helped me to do remote file copy, very well. >> Now, I'm not understanding how to create a directory on my server, scp >> doesn't do this, is it right? >> >> I've tried also with this: >> <sshexec host="myserver" >> username="user" >> password="pwd" >> >> command="mkdir c:/ahyeah"/> >> >> But it is saying "Connecting..." and it remains blocked indefinetely. >> >> My server is Windows and I've installed on it OpenSSH. >> >> Any advices or ideas? >> > Here is an example from an Ant build that creates a directory on a > remote Linux server; I don't have an example for creating a remote > directory on a Windows machine: > > <sshexec host="myhost.com" username="myuserid" trust="true" > keyfile="C:\Documents and Settings\mykeyfile" > passphrase="mypassphrase" failonerror="false" > command="mkdir /home/mysubdir/mysubsubdir/css"/> > > I've used literals for all the parameters, just to make it > straightforward. The Linux server is using a passphrase (stored on the > local Windows machine) rather than a password but passwords should work, > too. I assure you that this code works fine. > > I hope this helps. > > -- > Rhino > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-to-create-remote-directory-without-using-ftp--tp20735701p20789184.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]