Solved

Cannot run ssh1 on solaris 8 running on a container. SSH gives error " Bad packet length 1349676916"

Posted on 2010-09-17
4
755 Views
Last Modified: 2012-05-10
We replicated Solaris 8  server to a Container unsing Flar Archive. Server booted up normally but ssh is not working.  The SSH running on Solaris 8 is Sun SSH ver 1.2.30.

Here is the ssh out put. Can anybody help why I am getting "Bad packet length"  error? same  ssh binary works on on the Original Physical Solrais 8 server.

  ssh1 -v 10.102.177.39
SSH Version 1.2.30 [sparc-sun-solaris2.8], protocol version 1.5.
Standard version.  Does not use RSAREF.
ngzftpapp02-dev: Reading configuration data /etc/ssh_config
ngzftpapp02-dev: ssh_connect: getuid 17534 geteuid 0 anon 0
ngzftpapp02-dev: Allocated local port 1023.
ngzftpapp02-dev: Connecting to 10.102.177.39 port 22.
ngzftpapp02-dev: Connection established.
ngzftpapp02-dev: Remote protocol version 2.0, remote software version Sun_SSH_1.1
ngzftpapp02-dev: Waiting for server public key.
Local: Bad packet length 1349676916.
0
Comment
Question by:sirineni
  • 2
4 Comments
 
LVL 76

Accepted Solution

by:
arnold earned 500 total points
Comment Utility
you need to enable ssh version 1 mode by editing /etc/ssh/sshd_config.
There were/are issues with ssh protocol 1.
Any reason why you are not using ssh -v 10.102.177.39 and allow the client to negotiate the best available option?

If the issue deals with publickey access (no password)
use ssh-keygen -t dsa to generate a DSA private/public keys and ssh-keygen -t rsa for RSA.
then add the resulting id_dsa.pub and id_rsa.pub into the remote user's .ssh/authorized_keys2 location and you have achived access without the need to type in a password.

Have a look at installing openssl/openssh in /usr/local/ in place of Sun's ssh package.

0
 
LVL 76

Expert Comment

by:arnold
Comment Utility
Oh,
I think you would have a
Protocol 2
change that to
Protocol 2,1

You might have to make sure that you have rsa1 host keys in /etc/ssh
ssh_host_key.pub

If I'm not mistaken when sshd is started if one of the host keys is missing, it will be regenerated prior to sshd starting listening.
0
 
LVL 5

Expert Comment

by:balasundaram_s
Comment Utility
Log output clearly states that the 'remote protocol is 2'

ssh1 -v 10.102.177.39
SSH Version 1.2.30 [sparc-sun-solaris2.8], protocol version 1.5.
Standard version.  Does not use RSAREF.
ngzftpapp02-dev: Reading configuration data /etc/ssh_config
ngzftpapp02-dev: ssh_connect: getuid 17534 geteuid 0 anon 0
ngzftpapp02-dev: Allocated local port 1023.
ngzftpapp02-dev: Connecting to 10.102.177.39 port 22.
ngzftpapp02-dev: Connection established.
ngzftpapp02-dev: Remote protocol version 2.0, remote software version Sun_SSH_1.1
ngzftpapp02-dev: Waiting for server public key.
Local: Bad packet length 1349676916.


As 'arnold' suggested, you need to enable both protocol "1 & 2".
0
 

Author Comment

by:sirineni
Comment Utility
thanks for the responses.. got couple of feedbacks from the folks  to enable protocol ver 1 on target system  system but it is already enabled. As Arnold suggested I have copied the openssh's ssh binary from some other system and it worked.  then I got into SSH keys issues which I fixed it by stealing the public/private key from some other workng system.

though I did  not know the real cause for 'bad pakcet length' problem , was able to fix the issue by using openssh.

Thanks again for your responses.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
Introduction Regular patching is part of a system administrator's tasks. However, many patches require that the system be in single-user mode before they can be installed. A cluster patch in particular can take quite a while to apply if the machine…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now