Thanks for all the replies.

I ended up configuring ssh with --with-pty=pts.

Working good so far.


Jerry W. Lawrence



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David
Knight French
Sent: Wednesday, August 01, 2001 12:48 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: ssh hangs on one tty


I'm responding to this, but hope it is the last.  If you want to know more I
would suggest going to an AIX list.

In AIX, there is no functional difference between pts and ttyp in AIX 3.2.
All
of the ttyp device entries do is symlink to the pts device, unlike Linux and
Solaris which have seperate drivers for each.  In at least 4.2.x, they now
supported 2 seperate drivers for each type.

You are correct about the number it is 16 by default, but can easily be
increased.  Look in smit under Devices \ PTY \ CHange/Modify... and increase
the
BSD pseudo tty's from 16.  You may only be able to set this to 256 as a
max--I
think that was the case in 3.2 kernels.  In 4.2.x, it goes to at least 512
since
I just did it.  For AIX 3.2, you can go beyond this with a simple for loop
in
ksh.  Just set the value to 256 and then do an ls /dev/tty*.  Get the last
letter used and increment from there--I think it is ttyCf.  After ttyp, it
uses
ttyq, ttyr, etc. then ttyA, etc.  Then do a loop within a loop to create the
symlinks.  For AIX 4.2.x--probably 4.3.x and 4.1.x as well, it creates new
nodes
in /dev for these devices.

NOTE: command line instead of smit to change is:

        chdev -l pty0 -a ATTnum='256' -a BSDnum='256'

the ATTnum is for pts devices and BSDnum is for the tty[p-zA...][0-f]
devices.

As for your problem, I believe I had a similiar problem a long time ago
under
AIX, though it was AIX 3.2.  The problem was some other program had opened
the
device and changed the terminal settings, so it wouldn't respond.  The
device
was neither rest by the kernel on close or the new program on open.

You might try running as root:

        stty sane < /dev/ttyp2

to reset the pseudo tty instead of rebooting.

        --Dave

>Date: Tue, 31 Jul 2001 16:24:25 -0400
>From: Jason Grove <[EMAIL PROTECTED]>
>
>well this is just a guess, but I believe there are only a static number
>of ttyp. (I have 16 on all my machines.) I believe the pts are created
>on the fly as people log in. But I am not saying this is what actually
>happens. It has just been my experience... When I used the ttyp, I had
>nothing but problems, and when I switched to the pts everything worked
>fine.
>
>"Gonyou, Austin" wrote:
>>
>> Is there a major difference in using pts v. ttyp? Not trying to start a
>> flame war or anything, but I just don't see the difference, at least on
>> Linux, other than added size to the kernel and additional funkiness on X.
>>
>> --
>> Austin Gonyou
>> Systems Architect, CCNA
>> Coremetrics, Inc.
>> Phone: 512-796-9023
>> email: [EMAIL PROTECTED]
>>
>> > -----Original Message-----
>> > From: Jason Grove [mailto:[EMAIL PROTECTED]]
>> > Sent: Tuesday, July 31, 2001 11:20 AM
>> > To: Carl J. Nobile
>> > Cc: Jerry W. Lawrence; [EMAIL PROTECTED]
>> > Subject: Re: ssh hangs on one tty
>> >
>> >
>> > What I had to do on AIX was when I did the configure
>> > statement I added :
>> >
>> > --with-pty=pts
>> >
>> >
>> > That way it will use the pts/# instead of the static ttyp#. Once I did
>> > that the problems went away..
>> >
>> > This is on AIX 4.3.3..
>> >
>> > jason
>> >
>> >
>> > "Carl J. Nobile" wrote:
>> > >
>> > > Hi Jerry,
>> > >
>> > > First check that the permissions haven't changed on your
>> > ttyp2, then see
>> > > if there is another process keeping it open (could be
>> > zombied). This is
>> > > most likely not an SSH issue, but something else on your box.
>> > >
>> > > Carl
>> > >
>> > > On 31-Jul-01 Jerry W. Lawrence wrote:
>> > > > I have ssh 3.0 installed on AIX 4.1.5.
>> > > >
>> > > > Everything worked fine until yesterday.
>> > > >
>> > > > Now, when a user logs on and 'hits' ttyp2, the shell
>> > > > will not accept any input.  All other ttyps work
>> > > > fine.
>> > > >
>> > > > Anybody run into this?
>> > > >
>> > > > Thanks
>> > > >
>> > > > Jerry W. Lawrence
>> > >
>> > >
>> > --------------------------------------------------------------
>> > ----------
>> > > E-Mail: Carl J. Nobile <[EMAIL PROTECTED]>
>> > > Date: 31-Jul-01                             Phone:
>> > 315-453-2912 Ex. 5336
>> > > Time: 11:34:39                                Fax: 315-479-0859
>> > >
>> > > Software Engineering Group -- AppliedTheory Corp.
>> > > 224 Harrison Street, 6th Floor, Syracuse, NY  13202
>> > >
>> > --------------------------------------------------------------
>> > ----------
>> >

--
David Knight French
Black Mountain Computer Consulting
Voice: (858)573-2959
Email: [EMAIL PROTECTED]


Reply via email to