<?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>Linux Servers cPanel webhosting blog &#187; change default ssh port</title>
	<atom:link href="http://www.theperfectarts.com/tag/change-default-ssh-port/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theperfectarts.com</link>
	<description>Basics cPanel tutorials / issue,mysql,php errors etc</description>
	<lastBuildDate>Thu, 02 Sep 2010 11:15:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to restrict and secure SSH access?</title>
		<link>http://www.theperfectarts.com/2009/11/how-to-restrict-and-secure-ssh-access/</link>
		<comments>http://www.theperfectarts.com/2009/11/how-to-restrict-and-secure-ssh-access/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 07:52:02 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Server Security]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[change default ssh port]]></category>
		<category><![CDATA[disable root login.enable another port for ssh]]></category>
		<category><![CDATA[local machine ip checker]]></category>
		<category><![CDATA[ssh port]]></category>
		<category><![CDATA[sshd restart]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=382</guid>
		<description><![CDATA[To restrict and secure SSH access, bind SSHD to a single IP that is different than the main IP to the server, and on a different port than port 22. SSH into server and login as root user Once logged in in command prompt type: root@gunjan[]#pico /etc/ssh/sshd_config Scroll down to the section of the file [...]]]></description>
			<content:encoded><![CDATA[<p>To restrict and secure SSH access, bind SSHD to a single IP that is different than the main IP to the server, and on a different port than port 22.</p>
<p>SSH into server and login as root user</p>
<p>Once logged in in command prompt type:</p>
<p><span style="color: #800000;">root@gunjan[]#pico /etc/ssh/sshd_config</span></p>
<p>Scroll down to the section of the file that looks like this:<br />
Code:</p>
<p><span style="color: #800000;">#Port 22<br />
#Protocol 2, 1<br />
#ListenAddress 0.0.0.0<br />
#ListenAddress ::</span></p>
<p>Uncomment and change</p>
<p><span style="color: #800000;">#Port 22</span></p>
<p>to look like</p>
<p>Port 5678 (choose your own 4 to 5 digit port number (49999 is the highest port number)</p>
<p>Uncomment and change</p>
<p><span style="color: #800000;">#Protocol 2, 1</span></p>
<p>to look like remove 1 from above line</p>
<p><span style="color: #800000;">Protocol 2</span></p>
<p>Uncomment and change</p>
<p><span style="color: #800000;">#ListenAddress 0.0.0.0</span></p>
<p>to look like as follows</p>
<p><span style="color: #800000;">ListenAddress 115.186.0.2</span> (use one of your own IP Addresses that has been assigned to your server,if you are not sure about your local machine ip then browse the URL  http://whatismyip.com/)</p>
<p>Note 1: If you would like to disable direct Root Login, scroll down until you find</p>
<p><span style="color: #800000;">#PermitRootLogin yes</span></p>
<p>and uncomment it and make it look like</p>
<p><span style="color: #800000;">PermitRootLogin no</span></p>
<p>Save by pressing Ctrl o on your keyboard, and then exit by pressing Ctrl x on your keyboard.</p>
<p>Once file save restart SSHD service</p>
<p><span style="color: #800000;">root@gunjan[]# /etc/rc.d/init.d/sshd restart</span></p>
<p>Do not Logout from current SSH first try to connect Server from duplicate session , and then re-login to SSH using the new IP or nameserver, and the new port.</p>
<p>&copy;2010 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2009/11/how-to-restrict-and-secure-ssh-access/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
