<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="http://www.booservers.com/styles/rss.css" type="text/css"?>
<rdf:RDF 
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
  xmlns="http://my.netscape.com/rdf/simple/0.9/"
>

 <channel>
  <title>Booservers - All about dedicated servers</title>
  <link>http://www.booservers.com</link>
  <description></description>
 </channel>
    <item>
   <title>OpenSSH public key login (no password)</title>
   <description>&lt;p&gt;How to connect to your linux server using OpenSSH and public keys.&lt;/p&gt;&lt;p&gt;This is for OpenSSH2 protocol only !&lt;/p&gt;&lt;p&gt;Ok, here we go....&lt;/p&gt;&lt;p&gt;To generate keys on a linux desktop / workstation :&lt;/p&gt;&lt;p&gt;First, in a local shell (on your machine as your normal user) you must generate your keys.&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;ssh-keygen -q -t rsa -f $HOME/.ssh/id_rsa -C your_key_name_here&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;(replace your_key_name_here with your key name ;-) can be anything, just no spaces )&lt;br /&gt;You will be prompted for a passphrase, enter a sentence at least 10 or 15 words long that you will remember !&lt;br /&gt;&lt;br /&gt;You will be prompted again, re-enter the passphrase&lt;br /&gt;&lt;br /&gt;You then go back to the shell prompt.&lt;br /&gt;&lt;br /&gt;now you can go to ~/.ssh/ and see the files there :&lt;br /&gt;&lt;br /&gt;id_rsa&lt;br /&gt;id_rsa.pub&lt;br /&gt;known_hosts&lt;br /&gt;&lt;br /&gt;the id_rsa.pub is your public key.&lt;br /&gt;&lt;br /&gt;There are agents that can enter your passphrase for you automatically&lt;br /&gt;Check out &lt;a href=&quot;http://www.gentoo.org/proj/en/keychain.xml&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#22229c&quot;&gt;http://www.gentoo.org/proj/en/keychain.xml&lt;/font&gt;&lt;/a&gt;&lt;br /&gt;or read this Redhat document fully&lt;br /&gt;&lt;a href=&quot;http://www.redhat.com/docs/manuals/...ent-config.html&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#22229c&quot;&gt;http://www.redhat.com/docs/manuals/...ent-config.html&lt;/font&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;###########################################&lt;br /&gt;&lt;br /&gt;To generate keys on a Windows desktop / workstation :&lt;br /&gt;&lt;br /&gt;Get puTTY from &lt;a href=&quot;http://www.chiark.greenend.org.uk/~...y/download.html&quot; target=&quot;_blank&quot;&gt;&lt;font color=&quot;#22229c&quot;&gt;http://www.chiark.greenend.org.uk/~...y/download.html&lt;/font&gt;&lt;/a&gt; &lt;br /&gt;Make sure you get the .exe files for puTTY, puttygen and pageant and also get the puttydoc.zip Unzip puttydoc and read the howtos in there as to generating your keys and using pageant. &lt;br /&gt;Then use the putty generated public key in the server side section of my howto.&lt;br /&gt;&lt;br /&gt;###########################################&lt;br /&gt;&lt;br /&gt;To install the public key on the server (either generated by puttygen or ssh-keygen)&lt;br /&gt;&lt;br /&gt;Log in as admin on the server.&lt;br /&gt;&lt;br /&gt;While still in /home/admin &lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;mkdir .ssh&lt;br /&gt;chmod 700 .ssh&lt;br /&gt;cd .ssh&lt;br /&gt;vi authorized_keys2&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;hit i then add &lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;ssh-rsa&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;followed by a space, then paste in your public key &lt;/p&gt;&lt;p&gt;( tip: vi the id_rsa.pub on your local machine and copy the contents, including the name at the end that you gave it , but be careful not to get any line breaks when you copy, it should be just one line)&lt;/p&gt;&lt;p&gt;Now hit Esc, then hit :wq to save and exit&lt;/p&gt;&lt;p&gt;then&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;chmod 600 authorized_keys2&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;now su - to root&lt;br /&gt;enter&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;service sshd restart&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;Then logout from the server.&lt;/p&gt;&lt;p&gt;Log back in in the usual way, but now you will be asked for the passphrase.&lt;/p&gt;&lt;p&gt;Seems silly, but bear in mind that you are not sending the passphrase out over the net, it all takes place on your machine.&lt;/p&gt;&lt;p&gt;If you want to limit the connection for this key to your own hostname / ip address (client machine or for server to server) just add &lt;/p&gt;&lt;p&gt;host=xxx.xxx.xxx.xxx&lt;/p&gt;&lt;p&gt;before the ssh-rsa in authorized_keys2 , remembering to leave a space before ssh-rsa&lt;/p&gt;&lt;p&gt;(the x&#039;s being your ip or just enter your hostname if its real !)&lt;/p&gt;&lt;p&gt;ie &lt;/p&gt;&lt;p&gt;host=192.168.10.1 ssh-rsa pasteyourkeyhereexamplekeytextexamplekeytext your_key_name&lt;/p&gt;&lt;p&gt;&lt;br /&gt;It&#039;s done :-)&lt;/p&gt;&lt;p&gt;If you specify dsa in the keygen you will generate a DSA key, just remember to change rsa to dsa everywhere in this how to, except in the authorized_keys2 file where it should be ssh-dss&lt;/p&gt;&lt;p&gt;This howto should work for any linux servers with a reasonably current version of OpenSSH installed, and assuming that you haven&#039;t changed the authorization config to prevent key logins.&lt;/p&gt;&lt;p&gt;If the key login fails, you will still be able to use your password as normal ;-)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;To disable password based logins :&lt;/p&gt;&lt;p&gt;Once you have the keys generated, set up on the server and you have tested the system, you can disable keyboard based logins.&lt;/p&gt;&lt;p&gt;This ensures that only the public key holders can ssh into the server.&lt;/p&gt;&lt;p&gt;ssh into the server as admin then,&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;su -&lt;br /&gt;vi /etc/ssh/sshd_config&lt;br /&gt;/#PasswordAuthentication&lt;br /&gt;i&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;remove the # (uncomment the line) and change yes to no&lt;/p&gt;&lt;p&gt;hit Esc&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;:wq&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;then restart sshd&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p&gt;service sshd restart&lt;/p&gt;&lt;p&gt;------------------------&lt;/p&gt;&lt;p /&gt;</description>
   <link>http://www.booservers.com/archivo/36_openssh_public_key_login_no_password.html</link>
      <pubDate>Thu, 15 Dec 2005 21:37:41 +0000</pubDate>   
  </item>
    <item>
   <title>Using fail2ban to ban abusive IP&#039;s for SSH and Apache</title>
   <description>&lt;p&gt;How to automatically ban abusive ip&#039;s using fail2ban&lt;/p&gt;&lt;p&gt;Originally from Ensim 4.0; similar steps had to be taken after the upgrade to 4.0.2; I would assume the same follows until python 2.3 is included [it may already be; corrections welcome].&lt;/p&gt;&lt;p&gt;Fail2Ban scans log files like /var/log/pwdfail or /var/log/apache/error_log and bans IP that makes too many password failures. It updates firewall rules to reject the IP address.&lt;/p&gt;&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;&lt;a href=&quot;http://fail2ban.sourceforge.net/&quot;&gt;http://fail2ban.sourceforge.net/&lt;/a&gt;&lt;/p&gt;&lt;p&gt;RPM version can be obtained from here;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://fail2ban.sourceforge.net/rpm...1jik.noarch.rpm&quot;&gt;http://fail2ban.sourceforge.net/rpm...1jik.noarch.rpm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;For those of you / us who do not have python2.3; it is required.&lt;br /&gt;You can snag an rpm for your system here:&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://www.python.org/2.3.5/rpms.html&quot;&gt;http://www.python.org/2.3.5/rpms.html&lt;/a&gt;&lt;br /&gt;I used the following version for Red Hat EL3.&lt;/p&gt;&lt;p&gt;python2.3-2.3.5-4pydotorg.i386.rpm&lt;/p&gt;&lt;p&gt;Python will require db4. The following url has satisfactory versions for different systems.&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;http://rpm.pbone.net/index.php3?sta...h=db4&amp;amp;srodzaj=3&quot;&gt;http://rpm.pbone.net/index.php3?sta...h=db4&amp;amp;srodzaj=3&lt;/a&gt;&lt;br /&gt;I used the following version for Red Hat EL3.&lt;/p&gt;&lt;p&gt;db4-4.2.52-6.i386.rpm&lt;/p&gt;&lt;p&gt;# The following would then be performed as root&lt;/p&gt;&lt;p&gt;1) cd /root; mkdir fail2ban&lt;/p&gt;&lt;p&gt;2) do you have python 2.3?&lt;br /&gt;&#039;which python&#039; or if you have tab completion enabled type in &#039;pyth&#039; and hit tab two or three times, it should pop up as &#039;python2.3&#039;. &lt;/p&gt;&lt;p&gt;3) wget &lt;a href=&quot;http://fail2ban.sourceforge.net/rpm...1jik.noarch.rpm&quot;&gt;http://fail2ban.sourceforge.net/rpm...1jik.noarch.rpm&lt;/a&gt;&lt;/p&gt;&lt;p&gt;4) rpm -i fail2ban-0.6.0-ljik.noarch.rpm&lt;/p&gt;&lt;p&gt;5) nano -w /etc/fail2ban.conf&lt;/p&gt;&lt;p&gt;6) change the following items&lt;/p&gt;&lt;p&gt;----------------------------&lt;/p&gt;&lt;p&gt;[DEFAULT]&lt;br /&gt;# Option:  background&lt;br /&gt;# Notes.:  start fail2ban as a daemon. Output is redirect to logfile.&lt;br /&gt;# Values:  [true | false]  Default:  false&lt;br /&gt;#&lt;br /&gt;background = true&lt;/p&gt;&lt;p&gt;----------------------------&lt;/p&gt;&lt;p&gt;change :: background = true&lt;br /&gt;# This is so we can start it as a service when the machine comes up&lt;/p&gt;&lt;p&gt;6a) You can also have email sent to you by changing&lt;/p&gt;&lt;p&gt;----------------------------&lt;/p&gt;&lt;p&gt;[MAIL]&lt;br /&gt;# Option:  enabled&lt;br /&gt;# Notes.:  enable mail notification when banning an IP address.&lt;br /&gt;# Values:  [true | false]  Default:  false&lt;br /&gt;#&lt;br /&gt;enabled = true&lt;/p&gt;&lt;p&gt;----------------------------&lt;/p&gt;&lt;p&gt;change :: enabled = true&lt;br /&gt;And then inputting an email address below. Most of the configuration is dead simple for a machine you haven&#039;t change the logging facilities on.&lt;/p&gt;&lt;p&gt;You may also wish to add this to the end of the failregex.&lt;/p&gt;&lt;p&gt;|Did not receive identification &lt;/p&gt;&lt;p&gt;----------------------------&lt;/p&gt;&lt;p&gt;# Option:  failregex&lt;br /&gt;# Notes.:  regex to match the password failures messages in the logfile.&lt;br /&gt;# Values:  TEXT  Default:  Authentication failure|Failed password|Invalid user&lt;br /&gt;#&lt;br /&gt;failregex = Authentication failure|Failed password|Invalid user|Did not receive identification&lt;/p&gt;&lt;p&gt;----------------------------&lt;/p&gt;&lt;p&gt;7) Start the service&lt;/p&gt;&lt;p&gt;----------------------------&lt;/p&gt;&lt;p&gt;# service fail2ban start&lt;/p&gt;&lt;p&gt;----------------------------&lt;/p&gt;&lt;p&gt;8) Make sure it comes up with the system&lt;/p&gt;&lt;p&gt;----------------------------&lt;/p&gt;&lt;p&gt;# chkconfig --level 2345 fail2ban on&lt;/p&gt;&lt;p&gt;----------------------------&lt;/p&gt;&lt;p&gt;9) Test it from a spare ip (if you have one, if not the ban is lifted after the time set in the conf file [600 seconds standard]).&lt;/p&gt;&lt;p&gt;9a) Use screen to &#039;tail -f /var/log/fail2ban.log&#039;&lt;br /&gt;9b) Use bad logins from an untrusted ip to test for actual banning, email output.&lt;br /&gt;9c) If this fails, use the debug option in /etc/fail2ban.conf&lt;/p&gt;&lt;p&gt;10) Enjoy not one, but two less headaches as apache / ssh scanners, spammers and crackers are locked out of your box. With out too much work you could append a script that would either dump the logs and make repeat offenders banned permenantly, or roll some other solution for your own needs up. Enjoy, and please post any corrections.&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/32_using_fail2ban_to_ban_abusive_ips_for_ssh_and_apache.html</link>
      <pubDate>Thu, 15 Dec 2005 21:24:21 +0000</pubDate>   
  </item>
    <item>
   <title>Common SSH Commands - Linux Shell Commands</title>
   <description>We&#039;ve put together some of the more frequently used SSH commands or linux shell commands, and organized them by name so you can easily find a command, their description and how to use it. This guide will continue to be updated and should not be considered a complete list of SSH commands or linux shell commands, but commands, we found, often used. If you would like to add to this guide, please email us and let us know.&lt;br/&gt;&lt;center&gt;&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;pub-7209259988091090&quot;;
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = &quot;300x250_as&quot;;
google_ad_type = &quot;text_image&quot;;
google_ad_channel =&quot;3498328464&quot;;
google_color_border = &quot;FFFFFF&quot;;
google_color_bg = &quot;FFFFFF&quot;;
google_color_link = &quot;006633&quot;;
google_color_url = &quot;000000&quot;;
google_color_text = &quot;0033CC&quot;;
//--&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
  src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;&lt;/center&gt;&lt;br&gt;&lt;p&gt;Common SSH Commands or Linux Shell Commands,&lt;br /&gt;ls : list files/directories in a directory, comparable to dir in windows/dos.&lt;br /&gt;ls -al : shows all files (including ones that start with a period), directories, and details attributes for each file. &lt;/p&gt;&lt;p&gt;cd : change directory · · cd /usr/local/apache : go to /usr/local/apache/ directory &lt;br /&gt;cd ~ : go to your home directory &lt;br /&gt;cd - : go to the last directory you were in&lt;br /&gt;cd .. : go up a directory cat : print file contents to the screen &lt;/p&gt;&lt;p&gt;cat filename.txt : cat the contents of filename.txt to your screen &lt;/p&gt;&lt;p&gt;tail : like cat, but only reads the end of the file&lt;br /&gt;tail /var/log/messages : see the last 20 (by default) lines of /var/log/messages &lt;br /&gt;tail -f /var/log/messages : watch the file continuously, while it&#039;s being updated &lt;br /&gt;tail -200 /var/log/messages : print the last 200 lines of the file to the screen&lt;/p&gt;&lt;p&gt;more : like cat, but opens the file one screen at a time rather than all at once &lt;br /&gt;more /etc/userdomains : browse through the userdomains file. hit Spaceto go to the next page, q to quit &lt;/p&gt;&lt;p&gt;pico : friendly, easy to use file editor &lt;br /&gt;pico /home/burst/public_html/index.html : edit the index page for the user&#039;s website. &lt;/p&gt;&lt;p&gt;vi : another editor, tons of features, harder to use at first than pico &lt;br /&gt;vi /home/burst/public_html/index.html : edit the index page for the user&#039;s website. &lt;/p&gt;&lt;p&gt;grep : looks for patterns in files &lt;br /&gt;grep root /etc/passwd : shows all matches of root in /etc/passwd&lt;br /&gt;grep -v root /etc/passwd : shows all lines that do not match root &lt;/p&gt;&lt;p&gt;touch : create an empty file &lt;br /&gt;touch /home/burst/public_html/404.html : create an empty file called 404.html in the directory /home/burst/public_html/ &lt;/p&gt;&lt;p&gt;ln : create&#039;s &amp;quot;links&amp;quot; between files and directories&lt;br /&gt;ln -s /usr/local/apache/conf/httpd.conf /etc/httpd.conf : Now you can edit /etc/httpd.conf rather than the original. changes will affect the orginal, however you can delete the link and it will not delete the original. &lt;/p&gt;&lt;p&gt;rm : delete a file&lt;br /&gt;rm filename.txt : deletes filename.txt, will more than likely ask if you really want to delete it&lt;br /&gt;rm -f filename.txt : deletes filename.txt, will not ask for confirmation before deleting.&lt;br /&gt;rm -rf tmp/ : recursively deletes the directory tmp, and all files in it, including subdirectories. BE VERY CAREFULL WITH THIS COMMAND!!! &lt;/p&gt;&lt;p&gt;last : shows who logged in and when&lt;br /&gt;last -20 : shows only the last 20 logins &lt;br /&gt;last -20 -a : shows last 20 logins, with the hostname in the last field &lt;/p&gt;&lt;p&gt;w : shows who is currently logged in and where they are logged in from.&lt;/p&gt;&lt;p&gt;netstat : shows all current network connections.&lt;br /&gt;netstat -an : shows all connections to the server, the source and destination ips and ports.&lt;br /&gt;netstat -rn : shows routing table for all ips bound to the server.&lt;/p&gt;&lt;p&gt;top : shows live system processes in a nice table, memory information, uptime and other useful info. This is excellent for managing your system processes, resources and ensure everything is working fine and your server isn&#039;t bogged down.&lt;br /&gt;top then type Shift + M to sort by memory usage or Shift + P to sort by CPU usage&lt;/p&gt;&lt;p&gt;ps: ps is short for process status, which is similar to the top command. It&#039;s used to show currently running processes and their PID.&lt;br /&gt;A process ID is a unique number that identifies a process, with that you can kill or terminate a running program on your server (see kill command).&lt;br /&gt;ps U username : shows processes for a certain user&lt;br /&gt;ps aux : shows all system processes&lt;br /&gt;ps aux --forest : shows all system processes like the above but organizes in a hierarchy that&#039;s very useful!&lt;/p&gt;&lt;p&gt;file : attempts to guess what type of file a file is by looking at it&#039;s content. &lt;br /&gt;file * : prints out a list of all files/directories in a directory &lt;/p&gt;&lt;p&gt;du : shows disk usage. &lt;br /&gt;du -sh : shows a summary, in human-readble form, of total disk space used in the current directory, including subdirectories.&lt;br /&gt;du -sh * : same thing, but for each file and directory. helpful when finding large files taking up space. &lt;/p&gt;&lt;p&gt;wc : word count&lt;br /&gt;wc -l filename.txt : tells how many lines are in filename.txt &lt;/p&gt;&lt;p&gt;cp : copy a file &lt;br /&gt;cp filename filename.backup : copies filename to filename.backup&lt;br /&gt;cp -a /home/burst/new_design/* /home/burst/public_html/ : copies all files, retaining permissions form one directory to another. &lt;/p&gt;&lt;p&gt;kill: terminate a system process&lt;br /&gt;kill -9 PID EG: kill -9 431&lt;br /&gt;kill PID EG: kill 10550&lt;br /&gt;Use top or ps ux to get system PIDs (Process IDs) &lt;/p&gt;&lt;p&gt;EG:&lt;br /&gt;PID TTY TIME COMMAND &lt;br /&gt;10550 pts/3 0:01 /bin/csh &lt;/p&gt;&lt;p&gt;10574 pts/4 0:02 /bin/csh &lt;/p&gt;&lt;p&gt;10590 pts/4 0:09 APP &lt;/p&gt;&lt;p /&gt;&lt;p&gt;&lt;br /&gt;Each line represents one process, with a process being loosely defined as a running instance of a program. The column headed PID (process ID) shows the assigned process numbers of the processes. The heading COMMAND shows the location of the executed process. &lt;/p&gt;&lt;p&gt;Putting commands together&lt;br /&gt;Often you will find you need to use different commands on the same line. Here are some examples. Note that the | character is called a pipe, it takes date from one program and pipes it to another.&lt;br /&gt;&amp;gt; means create a new file, overwriting any content already there. &lt;br /&gt;&amp;gt;&amp;gt; means tp append data to a file, creating a newone if it doesn not already exist. &lt;br /&gt;&amp;lt; send input from a file back into a command. &lt;/p&gt;&lt;p&gt;grep User /usr/local/apache/conf/httpd.conf |more &lt;br /&gt;This will dump all lines that match User from the httpd.conf, then print the results to your screen one page at a time. &lt;/p&gt;&lt;p&gt;last -a &amp;gt; /root/lastlogins.tmp &lt;br /&gt;This will print all the current login history to a file called lastlogins.tmp in /root/ &lt;/p&gt;&lt;p&gt;tail -10000 /var/log/exim_mainlog |grep domain.com |more&lt;br /&gt;This will grab the last 10,000 lines from /var/log/exim_mainlog, find all occurances of domain.com (the period represents &#039;anything&#039;, &lt;br /&gt;-- comment it out with a so it will be interpretted literally), then send it to your screen page by page. &lt;/p&gt;&lt;p&gt;netstat -an |grep :80 |wc -l&lt;br /&gt;Show how many active connections there are to apache (httpd runs on port 80) &lt;/p&gt;&lt;p&gt;mysqladmin processlist |wc -l&lt;br /&gt;Show how many current open connections there are to mysql&lt;/p&gt;&lt;p&gt;Credits: &lt;a href=&quot;http://webhostgear.com&quot;&gt;http://webhostgear.com&lt;/a&gt;&lt;/p&gt;</description>
   <link>http://www.booservers.com/archivo/29_common_ssh_commands_-_linux_shell_commands.html</link>
      <pubDate>Thu, 15 Dec 2005 21:19:33 +0000</pubDate>   
  </item>
  </rdf:RDF>
