ssh in a photon terminal window hangs

When I run the OpenSSH ssh in a Photon terminal windows, it hangs after
I enter the password. However, it connects and seems to work just fine
if I run it from the console, without Photon. Anyone have any ideas as
to how to fix this?

Thanks,

Kevin

On Wed, Jun 20, 2007 at 03:20:30PM -0400, Kevin Miller wrote:

When I run the OpenSSH ssh in a Photon terminal windows, it hangs after I enter the password.
However, it connects and seems to work just fine if I run it from the console, without Photon.
Anyone have any ideas as to how to fix this?

Thanks,

That’s depend on your server and other stuff… more information may help

us to help you. But I have I suggestion that may solve your problem.

Edit the “/etc/hosts” file in the server side and add an entry
corresponding to your client.

i.e.:
192.168.0.8 client_name

For my experience, I need to do that when on a QNX server (sshd or
telnet) when it’s on a internal network. What I usually do, I add some
entries in the “/etc/hosts” file to cover all the IP’s of the Intranet.
Here an example of what you can add after the things that is already
there: (Assuming your intra-net IP range is 192.168.0.* with
255.255.255.0 netmask):

192.168.0.1 d1.yourdomain.com d1
192.168.0.2 d2.yourdomain.com d2

192.168.0.254 d254.yourdomain.com d254


That will remove the timeout for all client possible on the intranet
that connect to your server.


Martin

Kevin Miller wrote:

When I run the OpenSSH ssh in a Photon terminal windows, it hangs after
I enter the password. However, it connects and seems to work just fine
if I run it from the console, without Photon. Anyone have any ideas as
to how to fix this?

What does pidin say about it when it’s hanging?

pidin -Pssh

pid tid name prio STATE Blocked
15814700 1 opt/bin/ssh 10o SIGWAITINFO

Wojtek Lerch wrote:

Kevin Miller wrote:

When I run the OpenSSH ssh in a Photon terminal windows, it hangs
after I enter the password. However, it connects and seems to work
just fine if I run it from the console, without Photon. Anyone have
any ideas as to how to fix this?


What does pidin say about it when it’s hanging?

Interesting. And on the console?

Kevin Miller wrote:

pidin -Pssh

pid tid name prio STATE Blocked
15814700 1 opt/bin/ssh 10o SIGWAITINFO

Wojtek Lerch wrote:

Kevin Miller wrote:

When I run the OpenSSH ssh in a Photon terminal windows, it hangs
after I enter the password. However, it connects and seems to work
just fine if I run it from the console, without Photon. Anyone have
any ideas as to how to fix this?



What does pidin say about it when it’s hanging?

pid tid name prio STATE Blocked
16744474 1 opt/bin/ssh 10o SIGWAITINFO

This is after I have logged in and gotten the shell prompt on the remote
host.

In both cases netstat says that the ssh connection is established.

Wojtek Lerch wrote:

Interesting. And on the console?

Kevin Miller wrote:

pidin -Pssh

pid tid name prio STATE Blocked
15814700 1 opt/bin/ssh 10o SIGWAITINFO

Wojtek Lerch wrote:

Kevin Miller wrote:

When I run the OpenSSH ssh in a Photon terminal windows, it hangs
after I enter the password. However, it connects and seems to work
just fine if I run it from the console, without Photon. Anyone have
any ideas as to how to fix this?




What does pidin say about it when it’s hanging?

They look suspiciously similar… In a pterm, does it hang after
displaying a prompt, or before? Does the pidin output change if you
start typing into the hung ssh?

Does it work if you run login in your pterm, and then start ssh from the
login shell?

Does it work in a telnet session? (Just telnet to 127.1 and run ssh
from there. Try it both in a pterm and on the console.)


Kevin Miller wrote:

pid tid name prio STATE Blocked
16744474 1 opt/bin/ssh 10o SIGWAITINFO

This is after I have logged in and gotten the shell prompt on the remote
host.

In both cases netstat says that the ssh connection is established.

Wojtek Lerch wrote:

Interesting. And on the console?

Kevin Miller wrote:

pidin -Pssh

pid tid name prio STATE Blocked
15814700 1 opt/bin/ssh 10o SIGWAITINFO

Wojtek Lerch wrote:

Kevin Miller wrote:

When I run the OpenSSH ssh in a Photon terminal windows, it hangs
after I enter the password. However, it connects and seems to work
just fine if I run it from the console, without Photon. Anyone have
any ideas as to how to fix this?





What does pidin say about it when it’s hanging?


Wojtek Lerch
QNX Software Systems