<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Developers, Developers, Developers! &#187; SSH</title>
	<atom:link href="http://maksim.sorokin.dk/it/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://maksim.sorokin.dk/it</link>
	<description>Maksim Sorokin IT Blog</description>
	<lastBuildDate>Sun, 05 Feb 2012 19:37:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Copy Files with SCP Using Maven</title>
		<link>http://maksim.sorokin.dk/it/2010/08/26/copy-files-with-scp-using-maven/</link>
		<comments>http://maksim.sorokin.dk/it/2010/08/26/copy-files-with-scp-using-maven/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 16:10:05 +0000</pubDate>
		<dc:creator>Maksim Sorokin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Ant]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[SCP]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://maksim.sorokin.dk/it/?p=350</guid>
		<description><![CDATA[You can use Maven AntRun Plugin and Ant SCP task in order to transfer files with SCP: ... &#60;build&#62; ... &#60;plugins&#62; ... &#60;plugin&#62; &#60;artifactId&#62;maven-antrun-plugin&#60;/artifactId&#62; &#60;configuration&#62; &#60;tasks&#62; &#60;scp todir=&#34;${scp.user}:${scp.password}@${scp.host}:/${scp.dirCopyTo}&#34; trust=&#34;true&#34; failonerror=&#34;false&#34;&#62; &#60;fileset dir=&#34;${bundle.dir}&#34; /&#62; &#60;/scp&#62; &#60;/tasks&#62; &#60;/configuration&#62; &#60;dependencies&#62; &#60;dependency&#62; &#60;groupId&#62;ant&#60;/groupId&#62; &#60;artifactId&#62;ant-jsch&#60;/artifactId&#62; &#60;version&#62;1.6.5&#60;/version&#62; &#60;/dependency&#62; &#60;dependency&#62; &#60;groupId&#62;com.jcraft&#60;/groupId&#62; &#60;artifactId&#62;jsch&#60;/artifactId&#62; &#60;version&#62;0.1.42&#60;/version&#62; &#60;/dependency&#62; &#60;/dependencies&#62; &#60;/plugin&#62; ... Alternatively, you can use Ant [...]]]></description>
			<content:encoded><![CDATA[<p>You can use <a href="http://maven.apache.org/plugins/maven-antrun-plugin/">Maven AntRun Plugin</a> and <a href="http://ant.apache.org/manual/Tasks/scp.html">Ant SCP</a> task in order to transfer files with SCP:<span id="more-350"></span></p>
<pre class="brush: xml; title: ;">
...
  &lt;build&gt;
    ...
    &lt;plugins&gt;
    ...
      &lt;plugin&gt;
        &lt;artifactId&gt;maven-antrun-plugin&lt;/artifactId&gt;
        &lt;configuration&gt;
          &lt;tasks&gt;
            &lt;scp todir=&quot;${scp.user}:${scp.password}@${scp.host}:/${scp.dirCopyTo}&quot; trust=&quot;true&quot; failonerror=&quot;false&quot;&gt;
              &lt;fileset dir=&quot;${bundle.dir}&quot; /&gt;
            &lt;/scp&gt;
          &lt;/tasks&gt;
        &lt;/configuration&gt;
        &lt;dependencies&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;ant&lt;/groupId&gt;
            &lt;artifactId&gt;ant-jsch&lt;/artifactId&gt;
            &lt;version&gt;1.6.5&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
            &lt;groupId&gt;com.jcraft&lt;/groupId&gt;
            &lt;artifactId&gt;jsch&lt;/artifactId&gt;
            &lt;version&gt;0.1.42&lt;/version&gt;
          &lt;/dependency&gt;
        &lt;/dependencies&gt;
      &lt;/plugin&gt;
...
</pre>
<p>Alternatively, you can use <a href="http://ant.apache.org/manual/Tasks/sshexec.html">Ant sshexec</a> command in order to do additional stuff through SSH, like create or remove folders.</p>
]]></content:encoded>
			<wfw:commentRss>http://maksim.sorokin.dk/it/2010/08/26/copy-files-with-scp-using-maven/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SVN+SSH Protocol Properties</title>
		<link>http://maksim.sorokin.dk/it/2010/04/23/svnssh-protocol-properties/</link>
		<comments>http://maksim.sorokin.dk/it/2010/04/23/svnssh-protocol-properties/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 11:41:17 +0000</pubDate>
		<dc:creator>Maksim Sorokin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://maksim.sorokin.dk/it/?p=147</guid>
		<description><![CDATA[When a user connects to the SVN repository using svn+ssh protocol, first the SSH connection is established. And then files are grabbed directly from the filesystem. It is like grabbing directly through file:/// URL. So if you have multiple repositories, and for one of it you have passwords set, your security will be f*cked up. [...]]]></description>
			<content:encoded><![CDATA[<p>When a user connects to the SVN repository using <code>svn+ssh</code> protocol, first the SSH connection is established. And then files are grabbed directly from the filesystem. It is like grabbing directly through <code>file:///</code> URL. So if you have multiple repositories, and for one of it you have passwords set, your security will be f*cked up. Authorization question using <code>svn+ssh</code> can be easily solved by setting SSH users to specific user groups and granting according ownerships to the repository folders with "700" mode.</p>
]]></content:encoded>
			<wfw:commentRss>http://maksim.sorokin.dk/it/2010/04/23/svnssh-protocol-properties/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SSH Key Generation With Putty &#8220;puttygen&#8221;</title>
		<link>http://maksim.sorokin.dk/it/2010/04/22/ssh-key-generation-with-putty-puttygen/</link>
		<comments>http://maksim.sorokin.dk/it/2010/04/22/ssh-key-generation-with-putty-puttygen/#comments</comments>
		<pubDate>Thu, 22 Apr 2010 09:16:31 +0000</pubDate>
		<dc:creator>Maksim Sorokin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://maksim.sorokin.dk/it/?p=145</guid>
		<description><![CDATA[Before adding public key to the server, do not forget to format it! When you generate public and private key pair, your public key will look like ---- BEGIN SSH2 PUBLIC KEY ---- Comment: &#34;rsa-key-20100421&#34; AAAAB3NzaC1yc2EAAAABJQAAAIEAj1PKxItGVPtACMnirqW38KvtF3wHFDIej9UO bbRzIjTT15QK9Lo35Hsokuxr4voECxlxlbAdNKFWw308gwaTYjxf/Zs9cswstBfI jWSvoJC2F1/5fUE27nSjgt+chPijROYU0uHn2e0FtN+b9q8kcJzSfNXfvQMetlDd O62lZAM= ---- END SSH2 PUBLIC KEY ---- But you have to paste it to the server as [...]]]></description>
			<content:encoded><![CDATA[<p>Before adding public key to the server, do not forget to format it! When you generate public and private key pair, your public key will look like <span id="more-145"></span></p>
<pre class="brush: plain; title: ;">
---- BEGIN SSH2 PUBLIC KEY ----
Comment: &quot;rsa-key-20100421&quot;
AAAAB3NzaC1yc2EAAAABJQAAAIEAj1PKxItGVPtACMnirqW38KvtF3wHFDIej9UO
bbRzIjTT15QK9Lo35Hsokuxr4voECxlxlbAdNKFWw308gwaTYjxf/Zs9cswstBfI
jWSvoJC2F1/5fUE27nSjgt+chPijROYU0uHn2e0FtN+b9q8kcJzSfNXfvQMetlDd
O62lZAM=
---- END SSH2 PUBLIC KEY ----
</pre>
<p>But you have to paste it to the server as one line only with the key:</p>
<pre class="brush: plain; title: ;">
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAIEAj1PKxItGVPtACMnirqW38KvtF3wHFDIej9UO
bbRzIjTT15QK9Lo35Hsokuxr4voECxlxlbAdNKFWw308gwaTYjxf/Zs9cswstBfI
jWSvoJC2F1/5fUE27nSjgt+chPijROYU0uHn2e0FtN+b9q8kcJzSfNXfvQMetlDd
O62lZAM=
</pre>
]]></content:encoded>
			<wfw:commentRss>http://maksim.sorokin.dk/it/2010/04/22/ssh-key-generation-with-putty-puttygen/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

