根据标题,当我尝试scp通过ssh隧道时,我收到以下警告.在我的情况下,我不能scp直接foo因为设备foo上的端口1234正被转发到专用网络上的另一个机器栏(并且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
Run Code Online (Sandbox Code Playgroud)
有谁知道为什么我会收到这个警告Inappropriate ioctl for device?