You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am having difficulties piping data from a openssh client to a wolfsshd host.
For example, the following command never finishes.
cat test | ssh 192.168.0.1 -p 1234 'cat > xxxxxxxx'
ctrl-c aborts the connection. The test file is 48894 bytes, but 8188 bytes only makes it to the xxxxxxx file. The same happens using mbuffer -i file ...
It seems to always be 8188 bytes, even if I cat a large ISO or some text files. However when doing cat /dev/random or /dev/urandom, the command finishes but no remote file is created at all.
I built wolfssh from a git checkout today using ./configure --prefix=/opt/wolfssh --enable-all --with-wolfssl=/opt/wolfssl
I ran the sending cat and ssh through strace too and see that both do finish sending data and close the pipe, but somehow wolfsshd does not recognize this.
It seems as there are two problems;
wolfsshd stalls on transfers more than than a few KiB.
wolfsshd does not recognize that the caller has closed the pipe, and keeps the connection open.
I'm running in Gentoo Linux, x86_64, gcc-14.2.1. I did try this in September last year, with the same issue.
The text was updated successfully, but these errors were encountered:
Hi,
I am having difficulties piping data from a openssh client to a wolfsshd host.
For example, the following command never finishes.
ctrl-c aborts the connection. The test file is 48894 bytes, but 8188 bytes only makes it to the
xxxxxxx
file. The same happens usingmbuffer -i file ...
It seems to always be
8188
bytes, even if I cat a large ISO or some text files. However when doingcat /dev/random
or/dev/urandom
, the command finishes but no remote file is created at all.I built wolfssh from a git checkout today using
./configure --prefix=/opt/wolfssh --enable-all --with-wolfssl=/opt/wolfssl
I use the following
sshd_config
I start wolfsshd using
/opt/wolfssh/bin/wolfsshd -d -E /tmp/wolfsshd.log -f /opt/wolfssh/etc/sshd_config
Logfile contains
The source test file was created using the following, so I can determine how much was processed.
An strace of wolfsshd reveals it receives and sends 1859 rows and then stops with
<unfinished ...>
reading from/dev/pts/9<char 136:9
Using a 1024 byte file, all rows transfer, but worlfsshd still end in unfinished state.
I ran the sending
cat
andssh
through strace too and see that both do finish sending data and close the pipe, but somehow wolfsshd does not recognize this.It seems as there are two problems;
I'm running in Gentoo Linux, x86_64, gcc-14.2.1. I did try this in September last year, with the same issue.
The text was updated successfully, but these errors were encountered: