<?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>Sean&#039;s Blog &#187; port</title>
	<atom:link href="http://seanbehan.com/tag/port/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanbehan.com</link>
	<description>Web Programming, Ruby on Rails, Wordpress, PHP from Burlington, Vermont</description>
	<lastBuildDate>Wed, 18 Jan 2012 21:44:54 +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>Deploying to Dreamhost</title>
		<link>http://seanbehan.com/posts/deploying-to-dreamhost/</link>
		<comments>http://seanbehan.com/posts/deploying-to-dreamhost/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 15:43:24 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Posts]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[dreamhost]]></category>
		<category><![CDATA[freeze]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[unpack]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1115</guid>
		<description><![CDATA[Remember to include the host declaration in the database.yml file when you deploy to Dreamhost. Dreamhost does not use &#8220;localhost&#8221; which is typically the default setting when using the mysql adapter and developing locally or even on a small site. At least for me, when I ported a Rails app to Dreamhost, this was the [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fposts%2Fdeploying-to-dreamhost%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Deploying to Dreamhost" data-url="http://seanbehan.com/posts/deploying-to-dreamhost/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Remember to include the host declaration in the database.yml file when you deploy to Dreamhost. Dreamhost does not use &#8220;localhost&#8221; which is typically the default setting when using the mysql adapter and developing locally or even on a small site. </p>
<p>At least for me, when I ported a Rails app to Dreamhost, this was the only &#8220;Gotcha&#8221;, because my log files were not reporting any errors and were instead serving the 500 something went wrong file.<br />
A sample config/database.yml file</p>
<pre class="wp-code-highlight prettyprint">
production:
  adapter: mysql
  username: youruser
  password: yourpasswd
  database: ror_production_db
  host: mysql.yourdomain.com
</pre>
<p>To port, I unpack my gems, if I haven&#8217;t already</p>
<pre class="wp-code-highlight prettyprint">
rake gems:unpack
</pre>
<p>Then I freeze and package rails w/ my app just in case versions aren&#8217;t exact</p>
<pre class="wp-code-highlight prettyprint">
rake rails:freeze:gems
</pre>
<p>Then I upload to Dreamhost!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/posts/deploying-to-dreamhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Non Standard Port Number with SSH and Git</title>
		<link>http://seanbehan.com/git/non-standard-port-number-with-ssh-and-git/</link>
		<comments>http://seanbehan.com/git/non-standard-port-number-with-ssh-and-git/#comments</comments>
		<pubDate>Sun, 06 Sep 2009 19:25:27 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=529</guid>
		<description><![CDATA[Here is an example using the port 4567 to connect with over ssh and git ssh remote add origin ssh://sean@seanbehan.com:4567/path/to/git git push origin master]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fnon-standard-port-number-with-ssh-and-git%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Non Standard Port Number with SSH and Git" data-url="http://seanbehan.com/git/non-standard-port-number-with-ssh-and-git/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Here is an example using the port 4567 to connect with over ssh and git</p>
<pre class="wp-code-highlight prettyprint">
ssh remote add origin ssh://sean@seanbehan.com:4567/path/to/git
git push origin master
</pre>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/non-standard-port-number-with-ssh-and-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change default ssh port number on Ubuntu</title>
		<link>http://seanbehan.com/linux/change-default-ssh-port-number-on-ubuntu/</link>
		<comments>http://seanbehan.com/linux/change-default-ssh-port-number-on-ubuntu/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 16:46:42 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[22]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=499</guid>
		<description><![CDATA[Login as the root user or as a user that can execute sudo commands. #open this file for editing... vim /etc/ssh/sshd_config Find the line that reads Port 22 Change this to an different and an available port number&#8230; Port 8000 Next reload ssh /etc/init.d/ssh reload You won&#8217;t be kicked out of your session. But if [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Flinux%2Fchange-default-ssh-port-number-on-ubuntu%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Change default ssh port number on Ubuntu" data-url="http://seanbehan.com/linux/change-default-ssh-port-number-on-ubuntu/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Login as the root user or as a user that can execute sudo commands.</p>
<pre class="wp-code-highlight prettyprint">
#open this file for editing...
vim /etc/ssh/sshd_config
</pre>
<p>Find the line that reads</p>
<pre class="wp-code-highlight prettyprint">
Port 22
</pre>
<p>Change this to an different and an available port number&#8230;</p>
<pre class="wp-code-highlight prettyprint">
Port 8000
</pre>
<p>Next reload ssh</p>
<pre class="wp-code-highlight prettyprint">
/etc/init.d/ssh reload
</pre>
<p>You won&#8217;t be kicked out of your session. But if you want to open a new connection to your server you need to specify the port number for the connection.</p>
<pre class="wp-code-highlight prettyprint">
ssh -p8000 root@yourdomain.com
</pre>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/linux/change-default-ssh-port-number-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

