openssh clients on 7.04+ do not work with some ssh2 servers, while 6.10's ssh does.

Bug #160760 reported by Giblet5
6
Affects Status Importance Assigned to Milestone
openssh (Ubuntu)
Invalid
Undecided
Unassigned
Declined for Gutsy by Henrik Nilsen Omma

Bug Description

I connect, over a shared NAT router, to many different servers with ssh. This works great on Dapper.

After upgrading to Feisty or Gutsy, previously working ssh session configs (~/.ssh/config) can no longer connect.

Feisty or Gutsy CAN connect to each other, or to a Dapper system, but not outside machines.

This is NOT an OpenSSH problem. See below.

I do NOT have the seahorse package installed. There is a similar report to this related to the seahorse package.

I have two Gutsy and one Dapper machine on one GigE subnet and they route through a Linksys NAT FW/router. All three machines have (virtually) the same "dpkg -l" output, although the versions are different, and they have the same network setup (DNS, mask, default gateway, NIC MTU, etc).

In accordance with the OpenSSH.org web, I have played with MTU on the NICs and NAT router (1500 on all). Dapper's ssh works fine no matter what MTU is set on its NIC or the (same) router. I set the router back to 576 and Dapper ssh sessions work fine. That doesn't appear to be the problem.

Here's the -vv from a Gutsy machine:
OpenSSH_4.6p1 Debian-5build1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /home/XXXX/.ssh/config
debug1: Applying options for work-dev
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to work-dev [XXX.XXX.XXX.XXX] port XXXXX.
debug1: Connection established.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/XXXX/.ssh/identity type -1
debug1: identity file /home/XXXX/.ssh/id_rsa type -1
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/XXXX/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.7.1p2
debug1: match: OpenSSH_3.7.1p2 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6p1 Debian-5build1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent

It will hang there forever.

Feisty hangs at the same place.

I built openssh 4.3p2 on Gutsy (same rel as Dapper). I verified 4.3p2 under Gutsy, but see the same problem as 4.6p1. This eliminates OpenSSH I think.

OpenSSL? Libc? Kernel?

Fix it and I promise I will name my next child whatever you say.

Revision history for this message
Luiz Marcelo Serique (luiz-marcelo-serique) wrote :

I have the same problem with fresh install gutsy:

OpenSSH_4.6p1 Debian-5build1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to ... port 22.
debug1: Connection established.
debug1: identity file /home/.../.ssh/identity type -1
debug1: identity file /home/.../.ssh/id_rsa type -1
debug1: identity file /home/.../.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.8p1
debug1: match: OpenSSH_3.8p1 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6p1 Debian-5build1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent

any suggestions?

Revision history for this message
Brian Murray (brian-murray) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in openssh so somone more knowledgeable about can look at your bug report and determine what the root cause might be.

Revision history for this message
Adam Sommer (asommer) wrote :

Can you post your /etc/ssh/ssh_config and /etc/ssh/sshd_config from the client and one of the server's you're trying to connect to?

I have a similar setup and haven't experienced the issue.

Revision history for this message
Giblet5 (pw-byteshuffler) wrote : Re: [Bug 160760] Re: openssh clients on 7.04+ do not work with some ssh2 servers, while 6.10's ssh does.

Brian,

I'm not convinced this is an OpenSSH bug. I built an older release of
OpenSSH - against the Gutsy OpenSSL and C libraries - and it still
doesn't work (same hang at the same point).

I actually think it's an OpenSSL problem that only shows up in OpenSSH.

But thanks for classifying it.

I still have to maintain a Dapper machine to be able to work...

Cheers,
-Patrick

On Thu, 2007-11-29 at 13:56 +0000, Brian Murray wrote:
> Thank you for taking the time to report this bug and helping to make
> Ubuntu better. This bug did not have a package associated with it,
> which is important for ensuring that it gets looked at by the proper
> developers. You can learn more about finding the right package at
> https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this
> bug as a bug in openssh so somone more knowledgeable about can look at
> your bug report and determine what the root cause might be.
>
> ** Changed in: openssh (Ubuntu)
> Sourcepackagename: None => openssh
>

Revision history for this message
Giblet5 (pw-byteshuffler) wrote :

The client-side is using the default Gutsy /etc/ssh/sshd_config

I can't provide the server config due to company policy.

The Dapper version of openssh, which works on Dapper, does not work on
Gutsy. This tells me that it is either openssl, libc, or the kernel nic
driver. I'm very skeptical of the kernel possibility.

Altering the MTU of the NAT router and the Gutsy NIC interface to 576
(both) causes the hang to appear earlier in the initialization, which
tells me this is likely a fragmentation issue, but it happens no matter
what the MTU is set to. They're currently both at MTU:1500.

My money is on openssl. I don't currently have time to build/test an
older openssl library to check this, but if I get time I will do it and
report back.

On Thu, 2007-11-29 at 14:11 +0000, Adam Sommer wrote:
> Can you post your /etc/ssh/ssh_config and /etc/ssh/sshd_config from the
> client and one of the server's you're trying to connect to?
>
> I have a similar setup and haven't experienced the issue.
>

Revision history for this message
Luiz Marcelo Serique (luiz-marcelo-serique) wrote : Re: [Bug 160760] Re: openssh clients on 7.04+ do not work with some ssh2 servers, while 6.10's ssh does.

client ssh_config:

SendEnv LANG LC_*
HashKnownHosts yes
GSSAPIAuthentication no
GSSAPIDelegateCredentials no

i have no access to get from the server...

On Nov 29, 2007 12:11 PM, Adam Sommer <email address hidden> wrote:
> Can you post your /etc/ssh/ssh_config and /etc/ssh/sshd_config from the
> client and one of the server's you're trying to connect to?
>
> I have a similar setup and haven't experienced the issue.
>
>
> --
> openssh clients on 7.04+ do not work with some ssh2 servers, while 6.10's ssh does.
> https://bugs.launchpad.net/bugs/160760
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Adam Sommer (asommer) wrote :

Luiz can you post the output of ssh -vvv servername? Also, does the session never connect or just take a long time?

Also, has anyone tried connecting from tty1? If so did it hang at the same place?

Thanks,
Adam

Revision history for this message
Luiz Marcelo Serique (luiz-marcelo-serique) wrote :

this is the output:

OpenSSH_4.6p1 Debian-5build1, OpenSSL 0.9.8e 23 Feb 2007
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to server [server_ip] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/identity type -1
debug1: identity file /home/user/.ssh/id_rsa type -1
debug1: identity file /home/user/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_3.8p1
debug1: match: OpenSSH_3.8p1 pat OpenSSH_3.*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.6p1 Debian-5build1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent

stop here and never connect...

from tty1 hangs too...

I'm trying through wireless connection using ndiswrapper, i don't no
if this information is important, later i'll try through wired.

thanks.

On Nov 29, 2007 1:59 PM, Adam Sommer <email address hidden> wrote:
> Luiz can you post the output of ssh -vvv servername? Also, does the
> session never connect or just take a long time?
>
> Also, has anyone tried connecting from tty1? If so did it hang at the
> same place?
>
> Thanks,
> Adam
>
> --
>
> openssh clients on 7.04+ do not work with some ssh2 servers, while 6.10's ssh does.
> https://bugs.launchpad.net/bugs/160760
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Luiz Marcelo Serique (luiz-marcelo-serique) wrote :

i'm trying through wired, and didn't work too.
Stops in the same point.

Revision history for this message
Luiz Marcelo Serique (luiz-marcelo-serique) wrote :

When i'm inside the network everything works nice. That's not a bug, this is a security police on my company. Thank's everyone.

Revision history for this message
Giblet5 (pw-byteshuffler) wrote :

Luiz, what causes it though?

Something changed since Dapper. Dapper works fine. Edgy, Feisty, and Gutsy do not.

Revision history for this message
Luiz Marcelo Serique (luiz-marcelo-serique) wrote :

Because i can connect when i'm inside the company, in the intranet.
Maybe i'm not right, but it's very difficult to see another reason to
not work when i'm trying outside the company, through internet.

On Sat, Feb 23, 2008 at 12:31 PM, Giblet5 <email address hidden> wrote:
> Luiz, what causes it though?
>
> Something changed since Dapper. Dapper works fine. Edgy, Feisty, and
> Gutsy do not.
>
>
>
> --
> openssh clients on 7.04+ do not work with some ssh2 servers, while 6.10's ssh does.
> https://bugs.launchpad.net/bugs/160760
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Imre Gergely (cemc) wrote :

Is this still a problem with newer releases (Hardy, Intrepid) ?

Because Edgy and Feisty are no longer supported, and Gutsy goes out of support in 2 months, it's likely the bug won't be resolved ever if it's not found in newer releases.

Revision history for this message
Imre Gergely (cemc) wrote :

Tried to reproduce the problem, installed a Gutsy in virtualbox, and tried to connect to several different ssh servers (with different versions), through double NAT (guest -> host -> linksys router) but they all connected.

Is it possible to do a tcpdump for port 22 on the outgoing interface, maybe some packet gets dropped by firewall or something?

Revision history for this message
Giblet5 (pw-byteshuffler) wrote : Re: [Bug 160760] Re: openssh clients on 7.04+ do not work with some ssh2 servers, while 6.10's ssh does.

It was still a problem on Intrepid until we stopped allowing ssh
sessions and switched to OpenVPN.

I still think it was either an OpenSSL or NAT problem.

Feel free to close this if you can't reproduce it.

Imre Gergely wrote:
> Is this still a problem with newer releases (Hardy, Intrepid) ?
>
> Because Edgy and Feisty are no longer supported, and Gutsy goes out of
> support in 2 months, it's likely the bug won't be resolved ever if it's
> not found in newer releases.
>
>

Revision history for this message
Imre Gergely (cemc) wrote :

I'll be leaving this open for a bit more, and I'll try to reproduce it. Is there a way for you to try it once more on Intrepid?

Changed in openssh:
status: New → Incomplete
Revision history for this message
Giblet5 (pw-byteshuffler) wrote :

Not possible.

Sorry.

Imre Gergely wrote:
> I'll be leaving this open for a bit more, and I'll try to reproduce it.
> Is there a way for you to try it once more on Intrepid?
>
> ** Changed in: openssh (Ubuntu)
> Status: New => Incomplete
>
>

Revision history for this message
Chuck Short (zulcss) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in openssh (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.