summaryrefslogtreecommitdiffstats
path: root/site/trunk/site-publish/documentation-2x/setting-up-ssh.html
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--site/trunk/site-publish/documentation-2x/setting-up-ssh.html250
1 files changed, 250 insertions, 0 deletions
diff --git a/site/trunk/site-publish/documentation-2x/setting-up-ssh.html b/site/trunk/site-publish/documentation-2x/setting-up-ssh.html
new file mode 100644
index 0000000000..154948bd8d
--- /dev/null
+++ b/site/trunk/site-publish/documentation-2x/setting-up-ssh.html
@@ -0,0 +1,250 @@
+
+
+
+
+
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<HTML>
+ <HEAD>
+ <META name="description" content="Apache Tuscany">
+ <META name="keywords" content="apache, apache tuscany, tuscany, service, services, fabric, soa, service oriented architecture, sca, service component architecture, das, sdo, csa, ruby, opensource">
+
+ <LINK type="text/css" rel="stylesheet" href="http://tuscany.apache.org/stylesheets/default.css">
+ <LINK rel="SHORTCUT ICON" href="https://cwiki.apache.org/confluence/display/TUSCANYxDOCx2x/$images/favicon.ico">
+ <TITLE>Setting up ssh : Apache Tuscany</TITLE>
+ <META http-equiv="Content-Type" content="text/html;charset=UTF-8"></HEAD>
+
+ <STYLE>
+ .spacetree * ul {
+ padding-left:0px;
+ margin-left: 0px;
+ }
+ .spacetree * li {
+ margin-left: 5px;
+ padding-left:5px;
+ }
+ </STYLE>
+
+ <BODY onload="init()">
+ <!-- topNav -->
+ <TABLE border="0" cellpadding="2" cellspacing="0" width="100%">
+ <TR class="topBar">
+ <TD align="left" valign="middle" class="topBarDiv" align="left" nowrap="">
+ <A href="https://cwiki.apache.org/geronimo"> Home</A> &gt;&nbsp;<A href="index.html" title="Apache Tuscany Docs 2.x">Apache Tuscany Docs 2.x</A>&nbsp;&gt;&nbsp;<A href="index.html" title="Index">Index</A>&nbsp;&gt;&nbsp;<A href="making-releases.html" title="Making Releases">Making Releases</A>&nbsp;&gt;&nbsp;<A href="" title="Setting up ssh">Setting up ssh</A>
+ </TD>
+ <TD align="right" valign="middle" nowrap="">
+ <FORM name="search" action="http://www.google.com/search" method="get">
+ <INPUT type="hidden" name="ie" value="UTF-8">
+ <INPUT type="hidden" name="oe" value="UTF-8">
+ <INPUT type="hidden" name="domains" value="">
+ <INPUT type="hidden" name="sitesearch" value="">
+ <INPUT type="text" name="q" maxlength="255" value="">
+ <INPUT type="submit" name="btnG" value="Google Search">
+ </FORM>
+ </TD>
+ </TR>
+ </TABLE>
+
+
+ <TABLE border="0" cellpadding="2" cellspacing="0" width="100%">
+ <TR class="topBar">
+ <TD align="left" valign="middle" class="topBarDiv" nowrap="true" width="100%">
+ &nbsp;<A href="index.html" title="Apache Tuscany Docs 2.x">Apache Tuscany Docs 2.x</A>&nbsp;&gt;&nbsp;<A href="index.html" title="Index">Index</A>&nbsp;&gt;&nbsp;<A href="making-releases.html" title="Making Releases">Making Releases</A>&nbsp;&gt;&nbsp;<A href="" title="Setting up ssh">Setting up ssh</A>
+ </TD>
+
+ <TD align="right" valign="middle" class="topBarDiv" align="left" nowrap="true">
+ <A href="http://tuscany.apache.org/">Tuscany Home</A> | <A href="http://mail-archives.apache.org/mod_mbox/tuscany-user">User List</A> | <A href="http://mail-archives.apache.org/mod_mbox/tuscany-dev">Dev List</A> | <A href="http://issues.apache.org/jira/browse/Tuscany">Issue Tracker</A>&nbsp;&nbsp;
+ </TD>
+ </TR>
+ </TABLE>
+
+ <TABLE border="0" cellpadding="0" width="100%" bgcolor="#FFFFFF">
+ <TR>
+ <TD valign="top" align="left" width="22%" bgcolor="#F9F9F9" class="noprint">
+ <DIV class="tabletitle">Table of Contents</DIV>
+ <DIV class="spacetree">
+
+
+ </DIV>
+ </TD>
+ <TD align="left" valign="top" width="78%">
+ <!-- pageContent -->
+ <DIV id="PageContent">
+ <DIV class="pageheader" style="padding: 6px 0px 0px 0px;">
+ <!-- We'll enable this once we figure out how to access (and save) the logo resource -->
+ <!--img src="http://geronimo.apache.org/images/confluence_logo.gif" style="float: left; margin: 4px 4px 4px 10px;" border="0"-->
+ <DIV style="margin: 0px 10px 0px 10px" class="smalltext">Apache Tuscany Docs 2.x</DIV>
+ <DIV style="margin: 0px 10px 8px 10px" class="pagetitle">Setting up ssh</DIV>
+
+ <DIV class="greynavbar" align="right" style="padding: 2px 10px; margin: 0px;">
+<!-- -->
+ <A href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=21791345">
+ <IMG src="http://geronimo.apache.org/images/icons/notep_16.gif" height="16" width="16" border="0" align="absmiddle" title="Edit Page"></A>
+ <A href="https://cwiki.apache.org/confluence/pages/editpage.action?pageId=21791345">Edit Page</A>
+ &nbsp;
+ <A href="https://cwiki.apache.org/confluence/pages/listpages.action?key=TUSCANYxDOCx2x">
+ <IMG src="http://geronimo.apache.org/images/icons/browse_space.gif" height="16" width="16" border="0" align="absmiddle" title="Browse Space"></A>
+ <A href="https://cwiki.apache.org/confluence/pages/listpages.action?key=TUSCANYxDOCx2x">Browse Space</A>
+ &nbsp;
+ <A href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=TUSCANYxDOCx2x&fromPageId=21791345">
+ <IMG src="http://geronimo.apache.org/images/icons/add_page_16.gif" height="16" width="16" border="0" align="absmiddle" title="Add Page"></A>
+ <A href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=TUSCANYxDOCx2x&fromPageId=21791345">Add Page</A>
+ &nbsp;
+ <A href="https://cwiki.apache.org/confluence/pages/createblogpost.action?spaceKey=TUSCANYxDOCx2x&fromPageId=21791345">
+ <IMG src="http://geronimo.apache.org/images/icons/add_blogentry_16.gif" height="16" width="16" border="0" align="absmiddle" title="Add News"></A>
+ <A href="https://cwiki.apache.org/confluence/pages/createblogpost.action?spaceKey=TUSCANYxDOCx2x&fromPageId=21791345">Add News</A>
+<!-- -->
+ </DIV>
+ </DIV>
+
+ <DIV class="pagecontent">
+ <DIV class="wiki-content">
+ <TABLE class="sectionMacro" border="0" cellpadding="5" cellspacing="0" width="100%"><TBODY><TR><TD class="confluenceTd" valign="top" width="15%"><P></P>
+<DIV class="error"><SPAN class="error">Unable to render {include}</SPAN> Couldn't find a page to include called: <A href="https://cwiki.apache.org/confluence/pages/createpage.action?spaceKey=TUSCANYxDOCx2x&title=Menus&linkCreation=true&fromPageId=21791345" class="createlink">Menus</A></DIV></TD><TD class="confluenceTd" valign="top" width="85%">
+
+<H3><A name="Settingupssh-Setupmvntoworkwithyourapacheaccount"></A>Setup mvn to work with your apache account</H3>
+
+<H4><A name="Settingupssh-Generateanauthoriseddsa%2Frsakey"></A>Generate an authorised dsa/rsa key</H4>
+
+<P>Logon to <TT>minotaur.apache.org</TT> using your apache id and run:</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+$ ssh-keygen -t dsa
+</PRE>
+</DIV></DIV>
+
+<P>Give it some file name eg <TT>mysshkey</TT> and a pass phrase. This should create two files, a private key and a public key (<TT>mysshkey</TT>, <TT>mysshkey.pub</TT>). Copy <TT>mysshkey.pub</TT> to <TT>~/.ssh/authorised_keys</TT>. (you may need to create the .ssh directory), and scp the private key to you local machine.</P>
+
+<P><B>OR</B></P>
+
+<P>Use <TT>ssh-keygen</TT> to create a SSH key locally using shell or cygwin:</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+$ ssh-keygen -t rsa -b 4096
+</PRE>
+</DIV></DIV>
+
+<P>The keys will be saved in <TT><SUB>/.ssh/id_dsa</TT> (private) and <TT></SUB>/.ssh/id_dsa.pub</TT> (public).</P>
+
+<P><TT>scp</TT> your SSH public key <TT><SUB>/.ssh/id_dsa.pub</TT> created in last step to <TT></SUB>/id_dsa.pub</TT> on <TT>people.apache.org</TT>. </P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+$ scp ~/.ssh/id_dsa.pub &lt;your userid&gt;@people.apache.org:.
+</PRE>
+</DIV></DIV>
+
+<P>Login to people.apache.org</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+$ ssh &lt;your userid&gt;@people.apache.org
+</PRE>
+</DIV></DIV>
+
+<P>Create a <TT>~/.ssh</TT> folder in your home directory on <TT>people.apache.org</TT> and change its file mode to 700.</P>
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+$ mkdir ~/.ssh
+$ chmod 700 ~/.ssh
+</PRE>
+</DIV></DIV>
+
+<P>Move or append <TT><SUB>/id_dsa.pub</TT> to <TT></SUB>/.ssh/authorized_keys</TT> and change its file mode to 600.</P>
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-java">
+$ mv ~/id_dsa.pub ~/.ssh/authorized_keys
+$ chmod 600 ~/.ssh/authorized_keys
+</PRE>
+</DIV></DIV>
+
+<H4><A name="Settingupssh-UpdateMavensettings"></A>Update Maven settings</H4>
+
+<P>At this point you should be able to ssh into <TT>people.apache.org</TT> without being prompted for a password.</P>
+
+<P>In your maven <TT>settings.xml</TT> file (located in the .m2 folder in your home dir, eg <TT>C:\Documents and Settings\ant\.m2</TT>) add servers for the servers you use and specify you apache id, the location of the ssh key you just scp'd and the pass phrase you used when creating that key, eg:</P>
+
+<DIV class="code panel" style="border-width: 1px;"><DIV class="codeContent panelContent">
+<PRE class="code-xml">
+<SPAN class="code-tag">&lt;servers&gt;</SPAN>
+ <SPAN class="code-tag">&lt;server&gt;</SPAN>
+ <SPAN class="code-tag">&lt;id&gt;</SPAN>apache.incubator<SPAN class="code-tag">&lt;/id&gt;</SPAN>
+ <SPAN class="code-tag">&lt;username&gt;</SPAN>antelder<SPAN class="code-tag">&lt;/username&gt;</SPAN>
+ <SPAN class="code-tag">&lt;privateKey&gt;</SPAN>file-path-of-private-key<SPAN class="code-tag">&lt;/privateKey&gt;</SPAN>
+ <SPAN class="code-tag">&lt;passphrase&gt;</SPAN>xxx<SPAN class="code-tag">&lt;/passphrase&gt;</SPAN>
+ <SPAN class="code-tag">&lt;directoryPermissions&gt;</SPAN>775<SPAN class="code-tag">&lt;/directoryPermissions&gt;</SPAN>
+ <SPAN class="code-tag">&lt;filePermissions&gt;</SPAN>664<SPAN class="code-tag">&lt;/filePermissions&gt;</SPAN>
+ <SPAN class="code-tag">&lt;/server&gt;</SPAN>
+ <SPAN class="code-tag">&lt;server&gt;</SPAN>
+ <SPAN class="code-tag">&lt;id&gt;</SPAN>me.people<SPAN class="code-tag">&lt;/id&gt;</SPAN>
+ <SPAN class="code-tag">&lt;username&gt;</SPAN>antelder<SPAN class="code-tag">&lt;/username&gt;</SPAN>
+ <SPAN class="code-tag">&lt;privateKey&gt;</SPAN>file-path-of-private-key<SPAN class="code-tag">&lt;/privateKey&gt;</SPAN>
+ <SPAN class="code-tag">&lt;passphrase&gt;</SPAN>xxx<SPAN class="code-tag">&lt;/passphrase&gt;</SPAN>
+ <SPAN class="code-tag">&lt;directoryPermissions&gt;</SPAN>775<SPAN class="code-tag">&lt;/directoryPermissions&gt;</SPAN>
+ <SPAN class="code-tag">&lt;filePermissions&gt;</SPAN>664<SPAN class="code-tag">&lt;/filePermissions&gt;</SPAN>
+ <SPAN class="code-tag">&lt;/server&gt;</SPAN>
+ <SPAN class="code-tag">&lt;server&gt;</SPAN>
+ <SPAN class="code-tag">&lt;id&gt;</SPAN>apache.snapshots<SPAN class="code-tag">&lt;/id&gt;</SPAN>
+ <SPAN class="code-tag">&lt;username&gt;</SPAN>antelder<SPAN class="code-tag">&lt;/username&gt;</SPAN>
+ <SPAN class="code-tag">&lt;privateKey&gt;</SPAN>file-path-of-private-key<SPAN class="code-tag">&lt;/privateKey&gt;</SPAN>
+ <SPAN class="code-tag">&lt;passphrase&gt;</SPAN>xxx<SPAN class="code-tag">&lt;/passphrase&gt;</SPAN>
+ <SPAN class="code-tag">&lt;directoryPermissions&gt;</SPAN>775<SPAN class="code-tag">&lt;/directoryPermissions&gt;</SPAN>
+ <SPAN class="code-tag">&lt;filePermissions&gt;</SPAN>664<SPAN class="code-tag">&lt;/filePermissions&gt;</SPAN>
+ <SPAN class="code-tag">&lt;/server&gt;</SPAN>
+ <SPAN class="code-tag">&lt;server&gt;</SPAN>
+ <SPAN class="code-tag">&lt;id&gt;</SPAN>apache.rsync<SPAN class="code-tag">&lt;/id&gt;</SPAN>
+ <SPAN class="code-tag">&lt;username&gt;</SPAN>antelder<SPAN class="code-tag">&lt;/username&gt;</SPAN>
+ <SPAN class="code-tag">&lt;privateKey&gt;</SPAN>file-path-of-private-key<SPAN class="code-tag">&lt;/privateKey&gt;</SPAN>
+ <SPAN class="code-tag">&lt;passphrase&gt;</SPAN>xxx<SPAN class="code-tag">&lt;/passphrase&gt;</SPAN>
+ <SPAN class="code-tag">&lt;directoryPermissions&gt;</SPAN>775<SPAN class="code-tag">&lt;/directoryPermissions&gt;</SPAN>
+ <SPAN class="code-tag">&lt;filePermissions&gt;</SPAN>664<SPAN class="code-tag">&lt;/filePermissions&gt;</SPAN>
+ <SPAN class="code-tag">&lt;/server&gt;</SPAN>
+<SPAN class="code-tag">&lt;/servers&gt;</SPAN>
+</PRE>
+</DIV></DIV>
+
+<P>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.</P>
+
+
+</TD></TR></TBODY></TABLE>
+ </DIV>
+
+ </DIV>
+ </DIV>
+ </TD>
+ </TR>
+ </TABLE>
+
+ <!-- footer -->
+ <TABLE border="0" cellpadding="2" cellspacing="0" width="100%">
+ <TR>
+ <TD align="left" valign="middle" class="footer">
+ &nbsp;&nbsp;
+ <IMG src="http://static.delicious.com/img/delicious.small.gif" height="10" width="10" alt="Delicious">
+ <A href="http://delicious.com/save" onclick="window.open('http://delicious.com/save?v=5&noui&jump=close&url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title),'delicious','toolbar=no,width=550,height=550'); return false;">Bookmark this on Delicious</A>
+ &nbsp;&nbsp;
+ <IMG src="http://digg.com/img/badges/16x16-digg-guy.gif" width="16" height="16" alt="Digg!">
+ <A href="" onclick="window.open('http://digg.com/submit?url='+encodeURIComponent(location.href)+'&title='+encodeURIComponent(document.title)+'&topic=programming');">Digg this</A>
+ <!-- Slicker, but no text
+ <script type="text/javascript">
+ digg_skin = 'icon';
+ digg_window = 'new';
+ digg_title = 'Apache Geronimo v2.2 Documentation : Setting up ssh';
+ digg_topic = 'programming';
+ </script>
+ <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>
+ -->
+ &nbsp;&nbsp;
+ </TD>
+ <TD align="right" valign="middle" class="footer">
+ <A href="http://cwiki.apache.org/GMOxPMGT/geronimo-privacy-policy.html">Privacy Policy</A>&nbsp;&nbsp;-&nbsp;&nbsp;
+ Copyright &copy; 2003-2010, The Apache Software Foundation, Licensed under <A href="http://www.apache.org/licenses/LICENSE-2.0">ASL 2.0.</A>&nbsp;&nbsp;
+ </TD>
+ </TR>
+ </TABLE>
+
+ </BODY>
+</HTML> \ No newline at end of file