Mark Lybarger wrote:
so then on the local server (the one trying to run the sshexec task),i need to have the private key from the remoteserver? i've pulled from the remoteserver the ~/.ssh/id_dsa (the private key). and also placed it into the same folder as the build script that is running the sshexec task. it's still unable to find the key.

localmachine (trying to connect to remotemaching using a key):
C:/myfolder/build.xml
C:/myfolder/id_dsa
C:/myfolder/id_dsa.pub

remotemachine (where the key was generated):
~/.ssh/id_dsa
~/.ssh/id_dsa.pub


before you try and get SSH to work with ant, make sure it works on the command line (or putty, on windows). That way you can be sure that everything works.

-you dont need the private key on the remote box (consider removing it for security)

-try using <property location="path to id_dsa" > not property value. Then echo it, to make sure it is really what you think



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

Reply via email to