thanks, i had to add the key to the authorized keys on the remote server, 
and then the id_dsa.pub file didn't work, but the id_dsa does. whatever 
works and gets the pwd out of the build script.

On 8/19/05, Anderson, Rob (Global Trade) <[EMAIL PROTECTED]> wrote:
> 
> Private keys should never move. They are specific to a [EMAIL PROTECTED]
> 
> You need to get key authentication working from the command line first. 
> Please read the ssh documentation to understand public key authentication 
> and how to set it up.
> 
> -Rob A
> 
> > -----Original Message-----
> > From: Mark Lybarger [mailto:[EMAIL PROTECTED]
> > Sent: Friday, August 19, 2005 7:07 AM
> > To: Ant Users List
> > Subject: Re: sshexec with keyfile
> >
> >
> > 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
> >
> >
> > On 8/19/05, Steve Loughran <[EMAIL PROTECTED]> wrote:
> > >
> > > Mark Lybarger wrote:
> > > > i'm trying to use sshexec with a keyfile. i generated a
> > key on the
> > > remote
> > > > server using the ssh-keygen -t dsa. this gave me a
> > ~/.ssh/id_dsa and
> > > > ~/.ssh/id_dsa.pub. i pulled the id_dsa.pub file to the
> > remote machine
> > > from
> > > > where i want to run the sshexec task. i put the file into the
> > >
> > > > BUILD FAILED
> > > > D:\dev\workspace\autodeploy\build.xml:687:
> > com.jcraft.jsch.JSchException
> > > :
> > > > java.io.FileNotFoundException: id_dsa (The system cannot
> > find the file
> > > > specified)
> > > >
> > >
> > > you need to set the remote key to the location of the
> > private key you
> > > use for a connection. you cannot make a connection with the
> > public key;
> > > you cannot assume that <scp> will know to look into ~/.ssh,
> > because it
> > > doesnt
> > >
> > >
> > > <property name="remote.key" value="id_dsa.pub" />
> > >
> > >
> > ---------------------------------------------------------------------
> > > 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