Here are the directions I followed to set scp up:

        <section name="import Private Key">
            <p>Now you need to create a private key from the remote server
that you would like to deploy your files to.</p>
            <p><a href="file://C:/putty/puttygen.exe">Run puttygen</a></p>

            1. Ensure you have selected SSH-2 RSA under parameters
section.<br />
            2. Click the 'Generate' Button.<br />
            3. Move your mouse in circles in the 'Key' section to generate
randomness.<br />
            4. Save public key to c:\ssh\[somename]-public.key<br />
            5. Save private key to c:\ssh\[somename]-private.ppk<br />
        </section>


        <section name="edit settings.xml">
            <p>Most of the 'hard' stuff is now done. Next we will add our
remote server to our local maven configuration. To do this, we will have to
modify the file settings.xml.</p>

            <p>The settings.xml file is usually located in C:\Documents and
Settings\[user]\.m2.</p>

            <p>Before proceeding, you should back up the file. Open
settings.xml in Wordpad and add the following fragment of xml into the
file:</p>
            <pre>
                <servers>
                    <server>
                     <id>remote-repository-id</id>
                     <username>maven-scp-user</username>
                     <password>your password here</password>
                     <privateKey>c:/ssh/your_private_key.pkk</privateKey>
                     <configuration>
                      <sshExecutable>putty</sshExecutable>
                      <scpExecutable>pscp</scpExecutable>
                     </configuration>
                    </server>
                </servers>
            </pre>

        </section>


        <section name="Remote Server Setup">
            <p>The next task is to put the private key on the destination
server and set permissions.</p>

            <p>
            1. ssh to the server in question as the user you are attempting
to Maven scp with. We will use 'maven-scp-user' to example.<br />
            2. cd to 'maven-scp-user' home (/home/maven-scp-user)<br />
            3. create a DIR (mkdir) .ssh and chmod it to 0700<br />
            4. Now scp the private key 'c:\ssh\[somename]-private.ppk' to
[server]:/home/maven-scp-user/.ssh/[somename]-private.ppk and chmod to
0644<br />
            </p>
        </section>


        <section name="edit master pom.xml">
            <p>We now need to edit our master pom.xml with
<distributionManagement>:</p>
            <pre>
                <distributionManagement>
                    <site>
                        <id>remote-repository-id</id>
                        <name>DAP-Site</name>

<url>scp://rc-sun66e.ut.dentegra.lab/:/opt/htdocs/site/${project.version}</url>
                    </site>

                    <!-- use the following if you're not using a snapshot
version. -->
                    <repository>
                        <id>remote-repository-id</id>
                        <name>DAP-Repository</name>

<url>scp://rc-sun66e.ut.dentegra.lab/opt/htdocs/snapshot</url>
                    </repository>
                </distributionManagement>
            </pre>

        </section>

/opt/htdocs/snapshot is owned by apache:apache




2008/6/9 Mick Knutson <[EMAIL PROTECTED]>:

> I can login with plink just fine
>
> *Using username "admin".
> [EMAIL PROTECTED]'s password:
> Last login: Mon Jun  9 07:34:55 2008 from 65.213.63.17
> ←]0;[EMAIL PROTECTED]:[EMAIL PROTECTED] ~]$ ^C*
>
> But I still get the same prompt afterwards doing a site-deploy.
>
>
>
>
> On Fri, Jun 6, 2008 at 5:01 AM, Dennis Lundberg <[EMAIL PROTECTED]>
> wrote:
>
>> I think you need to accept the fingerprint for the server once. Try
>> connecting to the server from the command line first:
>>
>>  plink [EMAIL PROTECTED]
>>
>> Mick Knutson wrote:
>>
>>> I keep getting this error:
>>> *[INFO] [site:deploy]
>>> The authenticity of host '208.96.48.200' can't be established.
>>> RSA key fingerprint is 15:6f:d1:60:05:21:dd:43:4b:4d:d6:9e:4f:3b:aa:e4.
>>> Are you sure you wan*t to continue connecting? (yes/no):
>>>
>>> I have create a ppk and key from putty, and have added this to my pom.xml
>>>
>>>        <site>
>>>            <id>site.internal</id>
>>>            <name>site.internal</name>
>>>            <url>${siteUrl}</url>
>>>        </site>
>>>
>>> And here is my settings.xml
>>>
>>>        <server>
>>>            <id>site.internal</id>
>>>            <username>admin</username>
>>>            <password>[password]</password>
>>>            <filePermissions>664</filePermissions>
>>>            <directoryPermissions>755</directoryPermissions>
>>>            <privateKey>c:/ssh/internal-private.ppk</privateKey>
>>>            <configuration>
>>>                <sshExecutable>plink</sshExecutable>
>>>                <scpExecutable>pscp</scpExecutable>
>>>            </configuration>
>>>        </server>
>>>
>>> ...
>>>
>>>                <siteUrl>scp://208.0.50.1/:/var/www/html/site</siteUrl>
>>>
>>> I have spent all day on this, and can't find anything that fixes this
>>> issue.
>>>
>>>
>>>
>>>
>>
>> --
>> Dennis Lundberg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> ---
> Thank You…
>
> Mick Knutson
> BASE Logic, inc.
>
> Website: http://baselogic.com
> Blog: http://baselogic.com/blog
> BLiNC Magazine: http://blincmagazine.com
> Linked IN: http://linkedin.com/in/mickknutson
> DJ Mick: http://djmick.com
> MySpace: http://myspace.com/mickknutson
> Tahoe: http://tahoe.baselogic.com
>



-- 
---
Thank You…

Mick Knutson
BASE Logic, inc.

Website: http://baselogic.com
Blog: http://baselogic.com/blog
BLiNC Magazine: http://blincmagazine.com
Linked IN: http://linkedin.com/in/mickknutson
DJ Mick: http://djmick.com
MySpace: http://myspace.com/mickknutson
Tahoe: http://tahoe.baselogic.com

Reply via email to