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
Results > Posts Filed Under > Server
SSH Protocol Mismatch.
setting time zone and date on Linux server.
Changing time zone to Indian
cd /etc
then
[root@localhost etc]# ln -sf /usr/share/zoneinfo/Asia/Calcutta localtime
[root@localhost /root]# date 092011082001
Thu Sep 20 11:08:00 CDT 2001
[root@localhost /root]# hwclock –utc –systohc
[root@localhost /root]#
Ref: http://www.hypexr.org/linux_date_time_help.php
apt-get mirrors for debian
Alternate apt-get mirrors.
add the following in the file /etc/apt/sources.list
# main sources
#
deb http://debian.intergenia.de/debian/ sarge main contrib non-free
#deb-src http://debian.intergenia.de/debian/ sarge main contrib non-free
# non-us
#
deb http://debian.intergenia.de/debian-non-US/ sarge/non-US main contrib non-free
#deb-src http://debian.intergenia.de/debian-non-US/ sarge/non-US main contrib non-free
# security
#
deb http://debian.intergenia.de/debian-security/ sarge/updates main contrib non-free
#deb-src http://debian.intergenia.de/debian-security/ sarge/updates main contrib non-free
# Plesk
#deb http://autoinstall.plesk.com/debian PSA_8.0.1/
# PHP5
#deb http://people.debian.org/~dexter php5 sarge
deb http://dotdeb.netmirror.org/ stable all
deb-src http://dotdeb.netmirror.org/ stable all
Kernal Compilation.
 cd /usr/src
wget http://kernel.org/pub/linux/kernel/v2.4/linux-2.4.28.tar.bz2
tar -jxvf linux-2.4.28.tar.bz2
wget http://grsecurity.org/grsecurity-2.0.2-2.4.28.patch.gz
gunzip grsecurity-2.0.2-2.4.28.patch.gz
patch -p0 <ggrsecurity-2.0.2-2.4.28.patch
cd linux-2.4.28
make mrproper
make clean
make menuconfig
make dep
nohup make bzImage &
make modules 2> modules.err& or make modules 1> modules.out 2> modules.err&   and tail the modules.out file
make modules_install
make install
mkinitrd /boot/initrd-2.6.0.img 2.6.0
$ cp arch/i386/boot/bzImage /boot/bzImage-KERNEL_VERSION
$ cp System.map /boot/System.map-KERNEL_VERSION
$ ln -s /boot/System.map-KERNEL_VERSION /boot/System.map
=======================================================
cd /usr/src
wget http://kernel.org/pub/linux/kernel/v2.4/linux-2.4.28.tar.bz2
tar -jxvf linux-2.4.28.tar.bz2
wget http://grsecurity.org/grsecurity-2.0.2-2.4.28.patch.gz
gunzip grsecurity-2.0.2-2.4.28.patch.gz
patch -p0 <ggrsecurity-2.0.2-2.4.28.patch
cd linux-2.4.28
make mrproper
make clean
make menuconfig
make dep
nohup make bzImage &
make modules 2> modules.err& or make modules 1> modules.out 2> modules.err&   and tail the modules.out file
make modules_install
make install
mkinitrd /boot/initrd-2.6.0.img …