<?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>42 &#187; ssh</title>
	<atom:link href="http://www.42.mach7x.com/tag/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.42.mach7x.com</link>
	<description>Thoughts and tips about programming with Ruby on Rails</description>
	<lastBuildDate>Wed, 01 Feb 2012 14:38:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using gitolite in a non standard ssh port</title>
		<link>http://www.42.mach7x.com/2011/07/12/using-gitolite-in-a-non-standard-ssh-port/</link>
		<comments>http://www.42.mach7x.com/2011/07/12/using-gitolite-in-a-non-standard-ssh-port/#comments</comments>
		<pubDate>Tue, 12 Jul 2011 22:12:51 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[git]]></category>
		<category><![CDATA[gitolite]]></category>
		<category><![CDATA[non standar ssh port]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=361</guid>
		<description><![CDATA[Problem You have moved your gitolite server or you want to be able to access your gitolite server behind a firewall and port 22 for ssh is no longer available. Solution Edit your .git/config file and replace the line with : url = git_user_name@http://server_ip:repo_name.git to the following: url = ssh://git_user_name@external_ip:non_standard_ssh_port/repo_name.git]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You have moved your gitolite server or you want to be able to access your gitolite server behind a firewall and port 22 for ssh is no longer available.</p>
<p><strong>Solution</strong><br />
Edit your .git/config file and replace the line with :</p>
<p><code>url = git_user_name@http://server_ip:repo_name.git</code></p>
<p>to the following:</p>
<p><code>url = ssh://git_user_name@external_ip:non_standard_ssh_port/repo_name.git</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/07/12/using-gitolite-in-a-non-standard-ssh-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>problem using capistrano on deployment server after server ip address change</title>
		<link>http://www.42.mach7x.com/2011/06/27/problem-using-capistrano-on-deployment-server-after-server-ip-address-change/</link>
		<comments>http://www.42.mach7x.com/2011/06/27/problem-using-capistrano-on-deployment-server-after-server-ip-address-change/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 12:45:30 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Capistrano]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[change ip address]]></category>
		<category><![CDATA[deploying]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=356</guid>
		<description><![CDATA[Problem After changing the IP address of your staging server the cap deploy does not work any more and gives you the following error: ** [192.168.0.50 :: err] Host key verification failed. ** [192.168.0.50 :: err] fatal: The remote end hung up unexpectedly Solution You would need to login to your staging server (as your [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
After changing the IP address of your staging server the cap deploy does not work any more and gives you the following error:</p>
<p><code>** [192.168.0.50 :: err] Host key verification failed.<br />
 ** [192.168.0.50 :: err] fatal: The remote end hung up unexpectedly</code></p>
<p><strong>Solution</strong><br />
You would need to login to your staging server (as your deployment user) and do an initial checkout for one time for the ssh keys to work.<br />
So you could do something like the following:</p>
<p><code>$ ssh user_name@staging_server<br />
$sh -c 'git clone -q git_user@192.168.0.50:repo_name /some/tmp/dir/temp_repo_name</code></p>
<p>Make sure that you reply &#8216;y&#8217; to the question about the authenticity of the host as in:<br />
<code>The authenticity of host '192.168.0.50 (192.168.0.50)' can't be established.<br />
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xxb.<br />
Are you sure you want to continue connecting (yes/no)? yes<br />
Warning: Permanently added '192.168.0.50' (RSA) to the list of known hosts.</code></p>
<p>Net delete the newly created git project from your tmp directory, and then you should be able to use cap deploy as normal again from your development pc</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2011/06/27/problem-using-capistrano-on-deployment-server-after-server-ip-address-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>capistrano deployment fails after dreamhost server move</title>
		<link>http://www.42.mach7x.com/2010/10/08/capistrano-deployment-fails-after-dreamhost-server-move/</link>
		<comments>http://www.42.mach7x.com/2010/10/08/capistrano-deployment-fails-after-dreamhost-server-move/#comments</comments>
		<pubDate>Fri, 08 Oct 2010 10:27:29 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[Capistrano]]></category>
		<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[move]]></category>
		<category><![CDATA[permission denied]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=259</guid>
		<description><![CDATA[Problem You have set up your capistrano recipe for deployment to dreamhost using password less logins, but after dreamhost moves your git repository server to a different server, the deployment breaks, with &#8216;permission denied&#8217; when trying to get the git repository. Solution As the server was moved you would need to copy your ssh public [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You have set up your capistrano recipe for deployment to dreamhost using password less logins, but after dreamhost moves your git repository server to a different server, the deployment breaks, with &#8216;permission denied&#8217; when trying to get the git repository.</p>
<p><strong>Solution</strong><br />
As the server was moved you would need to copy your ssh public key from the deployment server to the new server again for the password-less logins to work again.<br />
Follow the details <a href="http://www.42.mach7x.com/2008/02/06/password-less-logins-and-aliases-with-ssh/">here</a> how to copy your public key across, login in once with your password, and after that your capistrano recipe should be working again as normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2010/10/08/capistrano-deployment-fails-after-dreamhost-server-move/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Syncing files between PCs with rsync and ssh</title>
		<link>http://www.42.mach7x.com/2010/07/15/syncing-files-between-pcs-with-rsync-and-ssh/</link>
		<comments>http://www.42.mach7x.com/2010/07/15/syncing-files-between-pcs-with-rsync-and-ssh/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 12:30:38 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/?p=205</guid>
		<description><![CDATA[Problem You want to mirror directories from one PC to another, using rsync and ssh. Solution Use the following: rsync -avc /path/to/source_folder/ user_name@remote_pc:/path/to/destination_folder/]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You want to mirror directories from one PC to another, using rsync and ssh.</p>
<p><strong>Solution</strong><br />
Use the following:<br />
<span class="code">rsync -avc /path/to/source_folder/ user_name@remote_pc:/path/to/destination_folder/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2010/07/15/syncing-files-between-pcs-with-rsync-and-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password &#8211; less logins and aliases with ssh</title>
		<link>http://www.42.mach7x.com/2008/02/06/password-less-logins-and-aliases-with-ssh/</link>
		<comments>http://www.42.mach7x.com/2008/02/06/password-less-logins-and-aliases-with-ssh/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 11:44:54 +0000</pubDate>
		<dc:creator>kosmas</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[passwords]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.42.mach7x.com/2008/02/06/password-less-logins-and-aliases-with-ssh/</guid>
		<description><![CDATA[Problem You want to be able to login to different servers with ssh, but don&#8217;t want to be using your password every time. Solution We assume that you already have installed ssh and have created ssh public keys in your local machine. Run the following in your local machine: ssh-copy-id -i ~/.ssh/id_rsa.pub user_name@remote_host If you [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem</strong><br />
You want to be able to login to different servers with ssh, but don&#8217;t want to be using your password every time.</p>
<p><strong>Solution</strong><br />
We assume that you already have installed ssh and have created ssh public keys in your local machine.</stong></p>
<ol>
<li>Run the following in your local machine:
<pre class="code">ssh-copy-id -i ~/.ssh/id_rsa.pub user_name@remote_host</pre>
</li>
<li>If you want to add aliases in your bash profile so you don&#8217;t have to type the whole address of the remote host, edit your .bashrc and add:
<pre class="code">alias short_name="ssh user_name@remote_host"</pre>
</li>
<li>Restart your X server, or simply start a new terminal session</li>
<li>You should be able to login with ssh without using your password by typing in your command prompt in your local machine:
<pre class="code">short_name</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.42.mach7x.com/2008/02/06/password-less-logins-and-aliases-with-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

