根据标题,当我尝试 scp
通过 ssh
隧道时,我收到以下警告。在我的情况下,我不能 scp
直接到 foo 因为设备 foo 上的端口 1234 被转发到专用网络上的另一台机器 bar (并且 bar 是给我一条到 192.168.1.23 的隧道的机器) .
$ # -f and -N don't matter and are only to run this example in one terminal
$ ssh -f -N -p 1234 userA@foo -L3333:192.168.1.23:22
$ scp -P 3333 foo.py ubuntu@localhost:
ubuntu@localhost's password:
stty: standard input: Inappropriate ioctl for device
foo.py 100% 1829 1.8KB/s 00:00
有谁知道为什么我会收到关于 Inappropriate ioctl for device
的警告?
原文由 jonderry 发布,翻译遵循 CC BY-SA 4.0 许可协议
当我在
~/.bashrc
中包含以下行时,我遇到了完全相同的问题:此行的目的是允许在 bash 的反向搜索中使用 Ctrl-s 。
这个 gmane 链接有一个解决方案:( 原始链接失效) => gmane 链接的 Web 存档版本
有几种方法可以检查 interecative shell 。以下解决了 bash 的问题: