AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
 View Only
  • 1.  stty: tcgetattr: A specified file does not support the ioctl system call.

    Posted Wed October 26, 2011 03:14 AM

    Originally posted by: Lashin


    Hi,

    I get below error when i try to connect using ssh. Just after supplying the password.
    "stty: tcgetattr: A specified file does not support the ioctl system call."
    after this session got hung.
    I checked through console login and found no performance issues.

    Please help on this.
    #AIX-Forum


  • 2.  Re: stty: tcgetattr: A specified file does not support the ioctl system call.

    Posted Wed October 26, 2011 08:28 AM

    Originally posted by: awojo


    Check root's .profile on that server. Remove anything from that .profile that messes with the stty.
    #AIX-Forum


  • 3.  Re: stty: tcgetattr: A specified file does not support the ioctl system call.

    Posted Wed October 26, 2011 09:12 AM

    Originally posted by: Lashin


    Hi,
    Thanks for your reply
    all the users getting the same error.So we checked /etc/profile and removed a line "stty erase ^?"

    After the modification, i am not getting any error .But my putty section getting hung after supplying the password.This is same for all the users.Only through console i am able to access the server.
    #AIX-Forum


  • 4.  Re: stty: tcgetattr: A specified file does not support the ioctl system call.

    Posted Wed October 26, 2011 10:04 AM

    Originally posted by: awojo


    Post the contents of /etc/profile and /etc/ssh/sshd_config
    #AIX-Forum


  • 5.  Re: stty: tcgetattr: A specified file does not support the ioctl system call.

    Posted Thu October 27, 2011 03:33 PM
      |   view attached

    Originally posted by: Lashin


    attaching /etc/profile
    #AIX-Forum

    Attachment(s)



  • 6.  Re: stty: tcgetattr: A specified file does not support the ioctl system call.

    Posted Thu October 27, 2011 10:48 PM

    Originally posted by: esv


    replace the following:

    stty erase ^?

    with..........
    if tty > /dev/null 2>&1
    then
    stty erase ^?
    fi

    make sure the ^? is a single char and not two.

    best regards,
    esv.
    #AIX-Forum


  • 7.  Re: stty: tcgetattr: A specified file does not support the ioctl system call.

    Posted Fri October 28, 2011 02:30 AM

    Originally posted by: laxmiprasad


    Hi

    How to type ^? as a single character. Please help us

    Regads
    Prasad
    #AIX-Forum


  • 8.  Re: stty: tcgetattr: A specified file does not support the ioctl system call.

    Posted Fri October 28, 2011 10:26 AM

    Originally posted by: MattLawrence


    When editting using vi, do ctrl-v backspace.
    #AIX-Forum


  • 9.  Re: stty: tcgetattr: A specified file does not support the ioctl system call.

    Posted Fri October 28, 2011 01:42 PM

    Originally posted by: Lashin


    when i edit using ctrl-v backspace ,I get below charactor on this particular server

    ^H

    when I tried the same in other AIx,Linux and hp-ux machines I have, it displays ^? perfectly single charactor.

    Please help.
    #AIX-Forum


  • 10.  Re: stty: tcgetattr: A specified file does not support the ioctl system call.

    Posted Thu October 27, 2011 03:39 PM
      |   view attached

    Originally posted by: Lashin


    attaching /etc/ssh/sshd_config
    #AIX-Forum

    Attachment(s)