Re: site:deploy via ssh under Windows

2007-01-03 Thread Barrie Treloar

On 1/4/07, Dmitry Beransky [EMAIL PROTECTED] wrote:

Hi,

I've found a few posts asking a similar question, but there were no
answers as far as I could tell...

I want to run a site:deploy via an external ssh and get this error message:


Is there a reason for wanting an external ssh?

I am on windows and use putty but I have not configured external ssh.

My distribution section looks like:
 distributionManagement
   repository
 idinhouse/id
 nameInhouse Internal Release Repository/name
 url
   scp://HOST/usr/local/www/default/maven2_repositories/inhouse
 /url
   /repository
   snapshotRepository
 idinhouse_snapshot/id
 nameInhouse Internal Snapshot Repository/name
 url
   scp://HOST/usr/local/www/default/maven2_repositories/inhouse_snapshot
 /url
   /snapshotRepository
   site
 idwebsite/id
 url
   scp://HOST/usr/local/www/default/projects/MY_PROJECT
 /url
   /site
 /distributionManagement

In my settings.xml I have:

   server
 idinhouse/id
 usernameUSER/username
 privateKey/PATH/TO/KEY.openssh/privateKey
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions
   /server
   server
 idinhouse_snapshot/id
 usernameUSER/username
 privateKey/PATH/TO/KEY.openssh/privateKey
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions
   /server
   server
 idwebsite/id
 usernameUSER/username
 privateKey/PATH/TO/KEY.openssh/privateKey
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions
   /server

Where the key file was saved generated in putty, and exported via
Converstions - Export OpenSSH key.  This key file doesnt have a
passphrase (which isn't the best security) but it avoids being
prompted for it during deployment.


Maven happily uses scp and deploys my artifacts without having a ssh
executable in my path.

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



Re: site:deploy via ssh under Windows

2007-01-03 Thread Dmitry Beransky

I'm using scp with a password based authentication.  While I have no
problems running the command from my workstation, if I run the same
build on the continous build box, I'm constantly being asked to accept
RSA key fingerprint.  Perhaps, switching to a key-based login would
fix the problem.

On 1/3/07, Barrie Treloar [EMAIL PROTECTED] wrote:

Is there a reason for wanting an external ssh?

I am on windows and use putty but I have not configured external ssh.
[...]
In my settings.xml I have:

   server
 idinhouse/id
 usernameUSER/username
 privateKey/PATH/TO/KEY.openssh/privateKey
 filePermissions664/filePermissions
 directoryPermissions775/directoryPermissions
   /server


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



Re: site:deploy via ssh under Windows

2007-01-03 Thread Barrie Treloar

On 1/4/07, Dmitry Beransky [EMAIL PROTECTED] wrote:

I'm using scp with a password based authentication.  While I have no
problems running the command from my workstation, if I run the same
build on the continous build box, I'm constantly being asked to accept
RSA key fingerprint.  Perhaps, switching to a key-based login would
fix the problem.


This is because you are missing the directory ~/.ssh so that the file
known_hosts can be created.

You would have done this as part of your windows setup but it is easy to miss.

Double check the location of your user home, it could also be that
while you are logged in as a user on windows that the home directory
is incorrectly C:\Documents and Settings\Default/

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



Re: site:deploy via ssh under Windows

2007-01-03 Thread Dmitry Beransky

On 1/3/07, Barrie Treloar [EMAIL PROTECTED] wrote:

This is because you are missing the directory ~/.ssh so that the file
known_hosts can be created.


d'oh!  that was it.  thanks!

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



Re: site:deploy via ssh under Windows

2007-01-03 Thread Barrie Treloar

On 1/4/07, Dmitry Beransky [EMAIL PROTECTED] wrote:

On 1/3/07, Barrie Treloar [EMAIL PROTECTED] wrote:
 This is because you are missing the directory ~/.ssh so that the file
 known_hosts can be created.

d'oh!  that was it.  thanks!


Your welcome.

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