Setting up ssh (TUSCANY) edited by ant
      Page: http://cwiki.apache.org/confluence/display/TUSCANY/Setting+up+ssh
   Changes: 
http://cwiki.apache.org/confluence/pages/diffpagesbyversion.action?pageId=60578&originalVersion=1&revisedVersion=2






Content:
---------------------------------------------------------------------

{section:border=false}{column:width=15%}
{include: Menus}{column}{column:width=85%}

h3. Setup mvn to work with your apache account

Generate a authorised dsa key:

logon to minotaur.apache.org using your apache id and run:

 ssh-keygen -t dsa

give it some file name eg mysshkey and a pass phrase. This should create two 
files, a private key and a public key (mysshkey, mysshkey.pub). Copy 
mysshkey.pub to ~/.ssh/authorised_keys. (you may need to create the .ssh 
directory), and ftp the private key to you local machine. (i use WINSCP).

In your maven settings.xml file (located in the .m2 folder in your home dir, eg 
C:\Documents and Settings\ant\.m2) add servers for the servers you use and 
specify you apachi id, the location of the sshkay you just ftp'd and the pass 
phrase you used when creating that key, eg:

  <servers>
    <server>
      <id>apache.incubator</id>
      <username>antelder</username>
      <privateKey>\ant\mysshkey</privateKey>
      <passphrase>xxx</passphrase>
      <directoryPermissions>775</directoryPermissions>
      <filePermissions>664</filePermissions>
    </server>
    <server>
      <id>me.people</id>
      <username>antelder</username>
      <privateKey>\ant\mysshkey</privateKey>
      <passphrase>xxx</passphrase>
      <directoryPermissions>775</directoryPermissions>
      <filePermissions>664</filePermissions>
    </server>
    <server>
      <id>apache.snapshots</id>
      <username>antelder</username>
      <privateKey>\ant\mysshkey</privateKey>
      <passphrase>xxx</passphrase>
      <directoryPermissions>775</directoryPermissions>
      <filePermissions>664</filePermissions>
    </server>
    <server>
      <id>apache.rsync</id>
      <username>antelder</username>
      <privateKey>\ant\mysshkey</privateKey>
      <passphrase>xxx</passphrase>
      <directoryPermissions>775</directoryPermissions>
      <filePermissions>664</filePermissions>
    </server>
  </servers> 
 
Keep the ssh key and pass phrase safe and secure. Its a good idea to only add 
the key and passphrase to the settings.xml file while you're actually using it 
and delete form the file at other times. Also you MUST delete the private ssh 
key from your Apache directory once you've ftp'd it to your local machine.

  
{column}
{section}


---------------------------------------------------------------------
CONFLUENCE INFORMATION
This message is automatically generated by Confluence

Unsubscribe or edit your notifications preferences
   http://cwiki.apache.org/confluence/users/viewnotifications.action

If you think it was sent incorrectly contact one of the administrators
   http://cwiki.apache.org/confluence/administrators.action

If you want more information on Confluence, or have a bug to report see
   http://www.atlassian.com/software/confluence


Reply via email to