LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   wolfssh returns error code 1 even the file has been transferred to the server successfully (https://www.linuxquestions.org/questions/linux-networking-3/wolfssh-returns-error-code-1-even-the-file-has-been-transferred-to-the-server-successfully-4175680410/)

jy824212 08-14-2020 12:52 PM

wolfssh returns error code 1 even the file has been transferred to the server successfully
 
Hi,

Recently I have faced this error

I used
Code:

scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user.log root@myserver:/home/root
echo $? will give me 0 indicates that it's succeeding, but I think because user.log is small size (2kB roughly)

Now I changed to
Code:

scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no swload.zip root@myserver:/home/root
swload.zip is 30 MB I am still able to transfer to my server by
echo $? returns me 1 this time
And I got this error:
Code:

channel_by_id: 0: bad id: channel free
Disconnecting: Received ieof for nonexistent channel 0.

server:wolfssh (myserver)
client: openssh scp client (local)

Any one knows how to fix this ?

Seems like there is an interop error wolfssh_scp_server and “openssh scp client”.

Best Regards

jy824212 08-14-2020 08:10 PM

Quote:

Originally Posted by jy824212 (Post 6155890)
Hi,

Recently I have faced this error

I used
Code:

scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no user.log root@myserver:/home/root
echo $? will give me 0 indicates that it's succeeding, but I think because user.log is small size (2kB roughly)

Now I changed to
Code:

scp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no swload.zip root@myserver:/home/root
swload.zip is 30 MB I am still able to transfer to my server by
echo $? returns me 1 this time
And I got this error:
Code:

channel_by_id: 0: bad id: channel free
Disconnecting: Received ieof for nonexistent channel 0.

server:wolfssh (myserver)
client: openssh scp client (local)

Any one knows how to fix this ?

Seems like there is an interop error wolfssh_scp_server and “openssh scp client”.

Best Regards

Did another test whenever the file size exceeds 500 kB it will return
Code:

channel_by_id: 0: bad id: channel free
Disconnecting: Received ieof for nonexistent channel 0.

wonder if is because of the buffer size

berndbausch 08-14-2020 09:09 PM

There are documents on the internet that contain the same error message, for example https://serverfault.com/questions/79...tent-channel-0. You need to review them and check if they address your particular configuration.

By the way, I think that this question should not be in the kernel forum. Network or Software seem more appropriate.

jy824212 08-14-2020 10:54 PM

Quote:

Originally Posted by berndbausch (Post 6156004)
There are documents on the internet that contain the same error message, for example https://serverfault.com/questions/79...tent-channel-0. You need to review them and check if they address your particular configuration.

By the way, I think that this question should not be in the kernel forum. Network or Software seem more appropriate.

will change to the proper section thank you.


All times are GMT -5. The time now is 01:31 AM.