Getting stty: standard input: Inappropriate ioctl for device when using scp through an ssh tunnel

后端 未结 2 1733
Happy的楠姐
Happy的楠姐 2020-12-24 01:20

Per the title, I\'m getting the following warning when I try to scp through an ssh tunnel. In my case, I cannot scp directly to foo be

相关标签:
2条回答
  • 2020-12-24 01:35

    at the end i created a blank .cshrc file ( for ubuntu 18.04). worked

    0 讨论(0)
  • 2020-12-24 01:59

    I got the exact same problem when I included the following line on my ~/bashrc:

    stty -ixon
    

    The purpose of this line was to allow the use of Ctrl-s in reverse search of bash.

    This link has a solution (not available)

    Web Archive version of the above link

    'stty' applies to ttys, which you have for interactive login sessions. .kshrc is executed for all sessions, including ones where stdin isn't a tty. The solution, other than moving it to your .profile, is to make execution conditional on it being an interactive shell.

    There are several ways to check for interecative shell. The following solves the problem for bash:

    [[ $- == *i* ]] && stty -ixon
    
    0 讨论(0)
提交回复
热议问题