LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-14-2020, 12:52 PM   #1
jy824212
LQ Newbie
 
Registered: Dec 2017
Posts: 28

Rep: Reputation: Disabled
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

Last edited by jy824212; 08-14-2020 at 10:55 PM.
 
Old 08-14-2020, 08:10 PM   #2
jy824212
LQ Newbie
 
Registered: Dec 2017
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jy824212 View Post
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

Last edited by jy824212; 08-14-2020 at 10:56 PM.
 
Old 08-14-2020, 09:09 PM   #3
berndbausch
LQ Guru
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 5,352

Rep: Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608Reputation: 1608
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.
 
Old 08-14-2020, 10:54 PM   #4
jy824212
LQ Newbie
 
Registered: Dec 2017
Posts: 28

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wolfssh returns error code 1 even the file has been transferred to the server successfully jy824212 Linux - Newbie 2 08-15-2020 07:32 AM
How start an action when a file has been transferred pingu Programming 2 03-07-2012 11:57 AM
How to find packet size that is been transferred toraghun Linux - Networking 1 07-07-2009 06:24 AM
My web server has been hacked. SU password has been disabled rcrosoer Linux - Security 11 06-27-2008 02:18 PM
/home has been successfully moved jeremy LQ Suggestions & Feedback 3 08-18-2000 05:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration