請問一下是在哪個環節發生問題 是openssh? env? bash?
ls /proc/self/fd/的 0 1 2 都存在,可是卻回應找不到
直接echo ok>/proc/self/fd/2也是同樣錯誤
我在舊的系統(2.4.20 SSH-1.99-OpenSSH_3.5p1)上是有輸出ok的
我對opensus10.0 及ubuntu 6.10和centos5.0上都是以root測試,也都是如此情況
opensus10.0 SSH-1.99-OpenSSH_4.2
centos5.0 SSH-1.99-OpenSSH_4.3
ubuntu 6.10 SSH-2.0-OpenSSH_4.6p1 Debian-5ubuntu0.1
還需要什麼方面的訊息判斷的請跟我說
ssh 10.254.254.2 'echo ok>/dev/stderr'
bash: /dev/stderr: No such device or address
root@MyBOX:~# ssh 10.254.254.2 'ls -ashl /proc/self/fd/'
total 0
0 dr-x------ 2 root root 0 Feb 16 18:25 .
0 dr-xr-xr-x 3 root root 0 Feb 16 18:25 ..
0 lrwx------ 1 root root 64 Feb 16 18:25 0 -> socket:[40840582]
0 lrwx------ 1 root root 64 Feb 16 18:25 1 -> socket:[40840582]
0 lrwx------ 1 root root 64 Feb 16 18:25 2 -> socket:[40840584]
0 lr-x------ 1 root root 64 Feb 16 18:25 3 -> /proc/23393/fd