SSH Protocol Mismatch.

Sometimes a protocol mismatch can cause a Bad packet length error.  Here is the fix.
Link: http://www.blu.org/pipermail/discuss…er/036218.html
Changed the ssh server configuration file in /etc/ssh/sshd_config to use both protocol 2 and 1 and restarted the ssh server using “/etc/init.d/sshd restart” and it started working.
Protocol 2,1
#Protocol 2

Read On »

Sendmail Server Tips

PROCESS=13640
for i in `/sbin/fuser 25/tcp `
do
if [ "$i" -ne $PROCESS ]
then
kill -9 $i
fi &> /dev/null
done
back to top http://www.experts-exchange.com/OS/Linux/Q_21731285.html?eeSearch=true
# Cron job (crontab(5)) to clear /var/spool/clientmqueue.
*/30 * * * * /usr/sbin/sendmail -L sm-msp-queue -Ac -q
#  Flush the queue. To clear the sendmail queue run the command
/usr/lib/sendmail -q
http://lists.freebsd.org/pipermail/freebsd-questions/2004-March/041322.html
queue clearing
/usr/sbin/sendmail -q -v
/usr/sbin/sendmail -Ac -q -v
sendmail -v -qI {queue id substring}
or
sendmail -v -qS {sender address substring}
or
sendmail -v -qR {recipient address substring}
These variations will limit the processing to a sender address,
recipient, etc, in the queue.
1.  Delete …

Read On »

Useful Tips.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html
http://www.acme.com/firewall.html         ———- firewall
http://www.defcon1.org/html/Networking_Articles/Firewall-Ipfw/firewall-ipfw.html        freebsd help
http://mirrorlist.freebsd.org/FBSDsites.php…..patch
cd /usr/home/ports
make install clean
/usr/libexec/locate.updatedb
#####################
kernel compilation in freebsd
http://www.projektfarm.com/en/support/howto/freebsd_quota.html
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig
new…….
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
http://www.projektfarm.com/en/support/howto/freebsd_quota.html
####################
#####################3
installing mysql in freebasd
#####################
MySQL is one of the most popular databases on the Internet and it is often used in conjunction with PHP. Besides its undoubted advantages such as easy of use and relatively high performance, MySQL offers simple but very effective security mechanisms. Unfortunately, the default installation of MySQL, and in particular the empty root password and the potential vulnerability to buffer overflow attacks, makes the database an easy …

Read On »

Load Alert script for Sun Solaris.

#!/bin/bash
EMAIL=”linu@pearlin.info”
SUBJECT=”Alert $(hostname) load average is $L05″
TEMPFILE=”/tmp/$(hostname)”
echo “Load average Crossed allowed limit.” >> $TEMPFILE
echo “Hostname: $(hostname)” >> $TEMPFILE
echo “Local Date & Time : $(date)” >> $TEMPFILE
echo “| Uptime status: |” >> $TEMPFILE
echo “——————————————-” >> $TEMPFILE
/usr/bin/uptime >> $TEMPFILE
echo “——————————————-” >> $TEMPFILE
echo “| Top 20 CPU consuming processes: |” >> $TEMPFILE
/usr/ucb/ps auwx | sort -rn +2 | head -20 >> $TEMPFILE
echo “| Top 10 memory-consuming processes: |” >> $TEMPFILE
/usr/ucb/ps awux | sort -rn +3 | head >> $TEMPFILE
echo “——————————————-” >> $TEMPFILE
echo “| Memory …

Read On »

 Page 2 of 4 « 1  2  3  4 »