<?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>Webmaster Sucks &#187; ssh</title>
	<atom:link href="http://www.webmastersucks.com/tags/ssh/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webmastersucks.com</link>
	<description>Here I share stuff I used to suck at as a novice webmaster..</description>
	<lastBuildDate>Mon, 13 Jun 2011 06:39:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Change MySQL Password via SSH</title>
		<link>http://www.webmastersucks.com/change-mysql-password-via-ssh/</link>
		<comments>http://www.webmastersucks.com/change-mysql-password-via-ssh/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 10:08:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=37</guid>
		<description><![CDATA[
			
				
			
		
login ssh, type mysqladmin. A tip if you can not remember mysql password type
mysql -uadmin -p`cat /etc/psa/.psa.shadow`

mysql&#62; USE mysql;
mysql&#62; SELECT * FROM user;
mysql&#62; SET PASSWORD FOR 'username'@'hostname' = PASSWORD('password_here');
mysql&#62; FLUSH PRIVILEGES;

]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fchange-mysql-password-via-ssh%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fchange-mysql-password-via-ssh%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>login ssh, type mysqladmin. A tip if you can not remember mysql password type</p>
<pre class="brush: plain; title: ;">mysql -uadmin -p`cat /etc/psa/.psa.shadow`</pre>
<pre class="brush: plain; title: ;">
mysql&gt; USE mysql;
mysql&gt; SELECT * FROM user;
mysql&gt; SET PASSWORD FOR 'username'@'hostname' = PASSWORD('password_here');
mysql&gt; FLUSH PRIVILEGES;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/change-mysql-password-via-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open and Close Port in Linux</title>
		<link>http://www.webmastersucks.com/open-and-close-port-in-linux/</link>
		<comments>http://www.webmastersucks.com/open-and-close-port-in-linux/#comments</comments>
		<pubDate>Thu, 28 May 2009 20:25:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[ports]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.webmastersucks.com/?p=6</guid>
		<description><![CDATA[
			
				
			
		
For more secure server, we have to close some ports to users. If need access to this ports, we can give permission to our IP address. We need static IP address for this operation. Please dont forget, &#8220;iptables&#8221; can be block all IP address but when you restart the server it will be clean all [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.webmastersucks.com%2Fopen-and-close-port-in-linux%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.webmastersucks.com%2Fopen-and-close-port-in-linux%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>For more secure server, we have to close some ports to users. If need access to this ports, we can give permission to our IP address. We need static IP address for this operation. Please dont forget, &#8220;iptables&#8221; can be block all IP address but when you restart the server it will be clean all of this commands. (I am using Fedora)</p>
<p><strong>Closing FTP port except xxx.xxx.xxx.xxx</strong></p>
<p>iptables -t filter -I INPUT 1 -p tcp -s ! xxx.xxx.xxx.xxx &#8211;dport 21 -j REJECT &#8211;reject-with icmp-host-prohibited</p>
<p><strong>Closing SSH port except xxx.xxx.xxx.xxx</strong></p>
<p>iptables -t filter -I INPUT 1 -p tcp -s ! xxx.xxx.xxx.xxx &#8211;dport ssh -j REJECT &#8211;reject-with icmp-host-prohibited</p>
<p><strong>Closing MySQL port except localhost</strong></p>
<p>iptables -A INPUT -i eth0 -s 192.168.1.0/24 -p tcp &#8211;destination-port 3306 -j ACCEPT</p>
<p><strong>Listing iptables list</strong></p>
<p>iptables -L</p>
<p><strong>Removing iptables data (Removing first one in list, type 2 for second one)</strong></p>
<p>iptables -D INPUT 1</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webmastersucks.com/open-and-close-port-in-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

