<?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>Digitalquill - My Life and Times &#187; ssh</title> <atom:link href="http://www.matthouldsworth.com/tag/ssh/feed/" rel="self" type="application/rss+xml" /><link>http://www.matthouldsworth.com</link> <description>Affiliate Marketing, Wordpress Development, DIY and More</description> <lastBuildDate>Thu, 05 Jan 2012 20:53:35 +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>Vpsville Review</title><link>http://www.matthouldsworth.com/2010/11/vpsville-review/</link> <comments>http://www.matthouldsworth.com/2010/11/vpsville-review/#comments</comments> <pubDate>Fri, 05 Nov 2010 20:20:52 +0000</pubDate> <dc:creator>Digitalquill</dc:creator> <category><![CDATA[Affiliate Marketing]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Web/Mail Servers]]></category> <category><![CDATA[debian]]></category> <category><![CDATA[email server]]></category> <category><![CDATA[hack]]></category> <category><![CDATA[hacked]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[server]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[ultrahosting]]></category> <category><![CDATA[virtual hosting]]></category> <category><![CDATA[virtual private server]]></category> <category><![CDATA[vps]]></category> <category><![CDATA[vpsville]]></category> <category><![CDATA[web hosting]]></category> <guid
isPermaLink="false">http://www.matthouldsworth.com/?p=2172</guid> <description><![CDATA[Regular readers of this blog will know that I have recently moved all my web hosting to a new provider following a devastating hack of one of my dedicated servers which was hosted with Ultrahosting. I had a bad experience with Ultrahosting support and will not be using them again in the future. I have &#8230;</p><p><a
class="more-link block-button" href="http://www.matthouldsworth.com/2010/11/vpsville-review/">Continue reading &#187;</a> Related posts:<ol><li><a
href='http://www.matthouldsworth.com/2011/07/hostgator-25-off-coupon-for-digitalquill-customers/' rel='bookmark' title='Hostgator 25% Off Coupon For Digitalquill Customers'>Hostgator 25% Off Coupon For Digitalquill Customers</a> <small>We have secured a 25% off coupon code for HostGator, readers of this blog and Digitalquill customers can get this 25% discount by using the...</small></li><li><a
href='http://www.matthouldsworth.com/2011/06/how-to-check-if-you-are-ready-for-wordpress-3-2/' rel='bookmark' title='How To Check If You Are Ready For WordPress 3.2'>How To Check If You Are Ready For WordPress 3.2</a> <small>If you have ready my previous post about a first view of WordPress 3.2, you will have noted that there are some significant requirements changes...</small></li><li><a
href='http://www.matthouldsworth.com/2011/04/outlook-is-unable-to-download-folder-null/' rel='bookmark' title='Outlook Is Unable To Download Folder (null)'>Outlook Is Unable To Download Folder (null)</a> <small>We have recently had an issue with outlook 2003 working with a new Courier IMAP Server. Connections would be made to the server and emails...</small></li></ol>]]></description> <content:encoded><![CDATA[<p>Regular readers of this blog will know that I have recently moved all my web hosting to a new provider following a devastating hack of one of my dedicated servers which was hosted with Ultrahosting. I had a bad experience with Ultrahosting support and will not be using them again in the future.</p><p><a
href="http://www.matthouldsworth.com/wp-content/uploads/2010/11/vpsville.gif" ><img
class="aligncenter size-full wp-image-2175" title="vpsville" src="http://www.matthouldsworth.com/wp-content/uploads/2010/11/vpsville.gif" alt="" width="127" height="38" /></a></p><p>I have been using VPSville for some time for my domain network and other projects and have always been impressed with their service.</p><p>I have signed up for two of their Semi dedicated vps servers which they call &#8216;Megacity&#8217; one to host my mail server and another to host my affiliate websites.</p><p>The VPSville control panel is very easy to use and fully functional, you can easily create new servers, reboot, gain SSH access, change passwords, monitor bandwidth and many other features.</p><p>They provide 25% discount on repeat custom. I currently have 10 VPS servers with them and two of the semi-dedicated servers. Discounts are also available if you may for 3, 6 or 12 months upfront.</p><p>Their prices go from £3.75 for their smallest server which they call Village with 64mb guaranteed RAM (burst to 128) 100GB Bandwidth and 5GM of disk space, up to £47.25 for their Megacity 3 Semi-Dedicated servers which 2Gb of RAM bursting to 4gb and 3000Gb Bandwidth and 160Gb of disk space.</p><p>They have Data centers in the UK, US and Canada, but appear to be a Canadian company. I have only used the London Data centre but have had no trouble with them at all.</p><p>I can not comment about support as I have had no reason to use support for anything, but if I do I will update this post with the results.</p><p>They take various forms of payment, the most critical one for me is Paypal as most of my business goes through Paypal. The only one comment I would make is that when buying a new server I can not seem to find the subscribe via Paypal option only a one off payment option, however, when you go into the existing account you can expand the payment options and create a Paypal subscription.</p><p>Another key advantage for me is that they do not have any fixed term contracts, you can pay month to month. This means that if I need a server for a project I can create one to use as a development server for £3.75 for a month and then kill it when I move the project onto my main web server.</p><p><a
rel="nofollow" href="http://www.matthouldsworth.com/goto/http://www.vpsville.ca" >Click here</a> and use the coupon code <strong>SP25</strong> to get started with <a
rel="nofollow" href="http://www.matthouldsworth.com/goto/http://www.vpsville.ca" >VPSville</a></p><div
id="_mcePaste" style="left: -10000px; overflow: hidden; width: 1px; position: absolute; top: 0px; height: 1px;">Gyprock Thermaline</div><p>Related posts:<ol><li><a
href='http://www.matthouldsworth.com/2011/07/hostgator-25-off-coupon-for-digitalquill-customers/' rel='bookmark' title='Hostgator 25% Off Coupon For Digitalquill Customers'>Hostgator 25% Off Coupon For Digitalquill Customers</a> <small>We have secured a 25% off coupon code for HostGator, readers of this blog and Digitalquill customers can get this 25% discount by using the...</small></li><li><a
href='http://www.matthouldsworth.com/2011/06/how-to-check-if-you-are-ready-for-wordpress-3-2/' rel='bookmark' title='How To Check If You Are Ready For WordPress 3.2'>How To Check If You Are Ready For WordPress 3.2</a> <small>If you have ready my previous post about a first view of WordPress 3.2, you will have noted that there are some significant requirements changes...</small></li><li><a
href='http://www.matthouldsworth.com/2011/04/outlook-is-unable-to-download-folder-null/' rel='bookmark' title='Outlook Is Unable To Download Folder (null)'>Outlook Is Unable To Download Folder (null)</a> <small>We have recently had an issue with outlook 2003 working with a new Courier IMAP Server. Connections would be made to the server and emails...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.matthouldsworth.com/2010/11/vpsville-review/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>11 Ssh Security Tips</title><link>http://www.matthouldsworth.com/2010/09/11-ssh-security-tips/</link> <comments>http://www.matthouldsworth.com/2010/09/11-ssh-security-tips/#comments</comments> <pubDate>Wed, 22 Sep 2010 18:32:19 +0000</pubDate> <dc:creator>Digitalquill</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Web/Mail Servers]]></category> <category><![CDATA[hack]]></category> <category><![CDATA[hacked]]></category> <category><![CDATA[hacking]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[security]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.matthouldsworth.com/?p=1811</guid> <description><![CDATA[In another post following on from the recent server hacks that I have suffered. I have been researching server security. SSH security is something that I have always been fairly strong on, but I wanted to check I was doing everything possible. Here is a list of things that you should do to improve the &#8230;</p><p><a
class="more-link block-button" href="http://www.matthouldsworth.com/2010/09/11-ssh-security-tips/">Continue reading &#187;</a> Related posts:<ol><li><a
href='http://www.matthouldsworth.com/2011/06/how-to-check-if-you-are-ready-for-wordpress-3-2/' rel='bookmark' title='How To Check If You Are Ready For WordPress 3.2'>How To Check If You Are Ready For WordPress 3.2</a> <small>If you have ready my previous post about a first view of WordPress 3.2, you will have noted that there are some significant requirements changes...</small></li><li><a
href='http://www.matthouldsworth.com/2011/04/outlook-is-unable-to-download-folder-null/' rel='bookmark' title='Outlook Is Unable To Download Folder (null)'>Outlook Is Unable To Download Folder (null)</a> <small>We have recently had an issue with outlook 2003 working with a new Courier IMAP Server. Connections would be made to the server and emails...</small></li><li><a
href='http://www.matthouldsworth.com/2011/05/disk-space-monitor-bash-script-for-linux/' rel='bookmark' title='Disk Space Monitor Bash Script For Linux'>Disk Space Monitor Bash Script For Linux</a> <small>Having setup the media storage and samba shares on the network at home, I do loose some control via windows of monitoring the space left...</small></li></ol>]]></description> <content:encoded><![CDATA[<p>In another post following on from the recent server hacks that I have suffered. I have been researching server security. SSH security is something that I have always been fairly strong on, but I wanted to check I was doing everything possible. Here is a list of things that you should do to improve the security for SSH on your server.</p><p><strong>1. Disable SSH if you do not need it<br
/> </strong></p><p>If you do not need ssh then disable it as it is always a vulnerability. If you are running a desktop/laptop with Ubuntu on it then remove ssh</p><p><code>apt-get  remove openssh-server</code></p><p><strong>2. Do not allow root login</strong></p><p>The root user is the master user on your server, it gives access to everything and permissions to do anything on your server. If that gets hacked it is the worst possible scenario for your server.</p><p>Why risk allowing people to do brute force attacks on the root user? Make sure that you stop root from being able to directly access SSH.</p><p>Edit the /etc/ssh/sshd_config file and change:</p><p><code>PermitRootLogin yes</code></p><p>to</p><p><code>PermitRootLogin no</code></p><p>Then restart ssh by running /etc/init.d/ssh restart</p><p>You will then have to SU from another user to become root or even better use the sudo command before executing root commands.</p><p><strong>3. Restrict the users who can access the server via SSH</strong></p><p>In addition to the above, you can restrict SSH access to your server to a limited number of users. In my case, I have only two users that can access the server via SSH, mine and the hosts support user.</p><p>Edit the /etc/ssh/sshd_config file and add:</p><p><code>AllowUsers username1 username2 </code></p><p>to the bottom of the file</p><p>Then restart ssh by running /etc/init.d/ssh restart</p><p><strong>4. Don&#8217;t use obvious usernames </strong></p><p>As with everything, we are trying to make things a little harder for hackers. If you use an obvious or well known username, you are open to brute force attacks on that username. So don&#8217;t use obvious users.</p><p><strong>5. Use Secure passwords</strong></p><p>Make sure that your users password is secure, use alpha numeric passwords with mixed case and try to use special characters in your password.</p><p><strong>6. Change the default ssh port</strong></p><p>On the same theme as changing the default settings, you should change the default ssh port.</p><p>Edit /etc/ssh/sshd_config</p><p>and change where it says &#8216;port 22&#8242; to a port number of your choice.</p><p>Then restart ssh by running /etc/init.d/ssh restart</p><p><strong>7. Keep OpenSSH up-to-date</strong></p><p>Make sure that you keep your whole system up-to-date especially OpenSSH</p><p>apt-get update<br
/> apt-get upgrade</p><p><strong>8. Always use ssh protocol 2</strong></p><p>Most modern versions of linux will already be configured to run with ssh protocol 2 by default but it is always worth checking</p><p>edit /etc/ssh/sshd_config</p><p>and check the protocol line says 2 and NOT 1</p><p>Protocol 2</p><p>Protocol 1 is vulnerable to man-in-the-middle attacks</p><p>Then restart ssh by running /etc/init.d/ssh restart</p><p><strong>9. Idle timeout</strong></p><p>The idle timeout terminates an ssh session after a given period of inactivity. This is especially useful to prevent vulnerabilities from unattended ssh sessions. This is not as much a hack, but an opportunist but it is worth considering depending on your situation.</p><p>edit /etc/ssh/sshd_config</p><pre>ClientAliveInterval 300
ClientAliveCountMax 0
Then restart ssh by running /etc/init.d/ssh restart<strong>
</strong></pre><p><strong>10. Use Keys</strong></p><p>A safe method of securing your SSH is by using keys. I will not go through the detailshere as they have been done before but take a look at the following tutorials:</p><p>http://www.ibm.com/developerworks/linux/library/l-keyc.html</p><p>http://www.cyberciti.biz/faq/ssh-password-less-login-with-dsa-publickey-authentication/</p><p>http://www.cyberciti.biz/faq/ssh-passwordless-login-with-keychain-for-scripts/</p><p><strong>11. Stop brute force attacks</strong></p><p>Brute force attacks are where a hacker keeps trying a username with different passwords until they find one that matches. You can use software such as <a
rel="nofollow" href="http://www.matthouldsworth.com/goto/http://www.fail2ban.org/" >fail2ban</a> or <a
rel="nofollow" href="http://www.matthouldsworth.com/goto/http://www.cyberciti.biz/faq/block-ssh-attacks-with-denyhosts/" >DenyHosts</a></p><p>Related posts:<ol><li><a
href='http://www.matthouldsworth.com/2011/06/how-to-check-if-you-are-ready-for-wordpress-3-2/' rel='bookmark' title='How To Check If You Are Ready For WordPress 3.2'>How To Check If You Are Ready For WordPress 3.2</a> <small>If you have ready my previous post about a first view of WordPress 3.2, you will have noted that there are some significant requirements changes...</small></li><li><a
href='http://www.matthouldsworth.com/2011/04/outlook-is-unable-to-download-folder-null/' rel='bookmark' title='Outlook Is Unable To Download Folder (null)'>Outlook Is Unable To Download Folder (null)</a> <small>We have recently had an issue with outlook 2003 working with a new Courier IMAP Server. Connections would be made to the server and emails...</small></li><li><a
href='http://www.matthouldsworth.com/2011/05/disk-space-monitor-bash-script-for-linux/' rel='bookmark' title='Disk Space Monitor Bash Script For Linux'>Disk Space Monitor Bash Script For Linux</a> <small>Having setup the media storage and samba shares on the network at home, I do loose some control via windows of monitoring the space left...</small></li></ol></p>]]></content:encoded> <wfw:commentRss>http://www.matthouldsworth.com/2010/09/11-ssh-security-tips/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Disabling Root Ssh Access In Debian</title><link>http://www.matthouldsworth.com/2009/01/disabling-root-ssh-access-in-debian/</link> <comments>http://www.matthouldsworth.com/2009/01/disabling-root-ssh-access-in-debian/#comments</comments> <pubDate>Tue, 13 Jan 2009 22:33:11 +0000</pubDate> <dc:creator>Digitalquill</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[debian]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[root]]></category> <category><![CDATA[security]]></category> <category><![CDATA[ssh]]></category> <guid
isPermaLink="false">http://www.matthouldsworth.com/?p=202</guid> <description><![CDATA[Following the disaster that I has with the web/mail servers I have taken an additional step to secure the servers as I am still not clear what the causes of the failure were. I have disabled direct root ssh login (which in debian is allowed by default) so you have to login as a non-privileged &#8230;</p><p><a
class="more-link block-button" href="http://www.matthouldsworth.com/2009/01/disabling-root-ssh-access-in-debian/">Continue reading &#187;</a> No related posts.]]></description> <content:encoded><![CDATA[<p>Following the disaster that I has with the web/mail servers I have taken an additional step to secure the servers as I am still not clear what the causes of the failure were.</p><p>I have disabled direct root ssh login (which in debian is allowed by default) so you have to login as a non-privileged user and then su to root</p><p>to do this edit sshd_config</p><p><em>vim /etc/ssh/sshd_config</em></p><p>then find the line:</p><p><em>PermitRootLogin yes</em></p><p>and change it to</p><p><em>PermitRootLogin no</em></p><p>the restart ssh</p><p><em>/etc/init.d/ssh restart</em></p><p>Remember to make sure that you have a non-privileged account that works and you can su from that account to root before you do this.</p><p>No related posts.</p>]]></content:encoded> <wfw:commentRss>http://www.matthouldsworth.com/2009/01/disabling-root-ssh-access-in-debian/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
