Hi all,
After a while of intensive googling and configuration tuning, I finally decided to submit my case here.
I'm trying to execute commands remotely from my linux box (OpenSSH_5.3p1) to myfreebsd FreeBSD box (OpenSSH_5.8p2_hpn13v11). The strange thing is that it works for some commands and not for others and moreover it depends on args. Basically, I just wanted to execute ls:
Then I figured out that, according to the amount of files in the targeted directory, the command was stuck or not.
I ended with this little script to measure the actual amount of maximum data that a command can output without being stuck:
After 171 or so, I have to stop the script because it is stuck.
Curiously, the same script applied from my mac box (OpenSSH_5.2p1) works continuously.
Any idea of what's going on?
After a while of intensive googling and configuration tuning, I finally decided to submit my case here.
I'm trying to execute commands remotely from my linux box (OpenSSH_5.3p1) to my
Code:
linux-box:~$ ssh user@freebsd-box ls /some/dir
Then I figured out that, according to the amount of files in the targeted directory, the command was stuck or not.
I ended with this little script to measure the actual amount of maximum data that a command can output without being stuck:
Code:
linux-box:~$ cat test
DIR=/home/data/test
rm $DIR/*
COUNT=0
while [ 1 ]; do
ls -rt $DIR
touch $DIR/$COUNT
let COUNT=COUNT+1
echo $COUNT
done
linux-box:~$ ssh user@freebsd-box 'bash -s' < test
1
2
3
.
.
.
160
161
162
163
164
165
166
167
168
169
171
^C
Curiously, the same script applied from my mac box (OpenSSH_5.2p1) works continuously.
Any idea of what's going on?