Re: Channel opening failure: channel 53 error (1) open failed

2018-07-12 Thread Yanis Kurganov
I forgot, it was a connection to Cent OS.
SSH-2.0-OpenSSH_7.4
ssh_packet_channel_failure: SSH_CHANNEL_FAILURE received in incorrect state
0
Unfortunately, I cannot reproduce this in my environment.

2018-06-22 17:39 GMT+03:00 Yanis Kurganov :

> Hi, Andreas!
>
> Done, now I use SFTP.
> Everything is OK, but today i got this log (after that libssh freezes up
> completely):
>
> channel_open: Creating a channel 53 with 64000 window and 32768 max packet
> ssh_socket_unbuffered_write: Enabling POLLOUT for socket
> packet_send2: packet: wrote [len=44,padding=19,comp=24,payload=24]
> channel_open: Sent a SSH_MSG_CHANNEL_OPEN type session for channel 53
> ssh_packet_socket_callback: packet: read type 92
> [len=44,padding=15,comp=28,payload=28]
> ssh_packet_process: Dispatching handler for packet type 92
> ssh_packet_channel_open_fail: Channel opening failure: channel 53 error
> (1) open failed
> ssh_socket_unbuffered_write: Enabling POLLOUT for socket
> packet_send2: packet: wrote [len=44,padding=16,comp=27,payload=27]
> channel_request: Sent a SSH_MSG_CHANNEL_REQUEST subsystem
> ssh_packet_socket_callback: packet: read type 100 [len=12,padding=6,comp=5,
> payload=5]
> ssh_packet_process: Dispatching handler for packet type 100
> ssh_packet_channel_failure: Received SSH_CHANNEL_FAILURE on channel (43:0)
> ssh_packet_channel_failure: SSH_CHANNEL_FAILURE received in incorrect
> state 0
>
>
> 2018-04-17 18:54 GMT+03:00 Andreas Schneider :
>
>> On Tuesday, 17 April 2018 15:47:58 CEST Yanis Kurganov wrote:
>> > Moreover, after
>> >
>> > ssh_packet_channel_failure: SSH_CHANNEL_FAILURE received in incorrect
>> state
>> > 0
>> >
>> > libssh didn't return control and totaly freezed.
>> >
>>
>> I'm sorry, I've never really looked into scp (which is a really broken
>> protocol). You should use sftp which we support.
>>
>>
>> Cheers,
>>
>>
>> Andreas
>>
>>
>> --
>> Andreas Schneider   GPG-ID: CC014E3D
>> www.cryptomilk.orga...@cryptomilk.org
>>
>>
>>
>>
>


Re: Channel opening failure: channel 53 error (1) open failed

2018-06-22 Thread Yanis Kurganov
Hi, Andreas!

Done, now I use SFTP.
Everything is OK, but today i got this log (after that libssh freezes up
completely):

channel_open: Creating a channel 53 with 64000 window and 32768 max packet
ssh_socket_unbuffered_write: Enabling POLLOUT for socket
packet_send2: packet: wrote [len=44,padding=19,comp=24,payload=24]
channel_open: Sent a SSH_MSG_CHANNEL_OPEN type session for channel 53
ssh_packet_socket_callback: packet: read type 92
[len=44,padding=15,comp=28,payload=28]
ssh_packet_process: Dispatching handler for packet type 92
ssh_packet_channel_open_fail: Channel opening failure: channel 53 error (1)
open failed
ssh_socket_unbuffered_write: Enabling POLLOUT for socket
packet_send2: packet: wrote [len=44,padding=16,comp=27,payload=27]
channel_request: Sent a SSH_MSG_CHANNEL_REQUEST subsystem
ssh_packet_socket_callback: packet: read type 100
[len=12,padding=6,comp=5,payload=5]
ssh_packet_process: Dispatching handler for packet type 100
ssh_packet_channel_failure: Received SSH_CHANNEL_FAILURE on channel (43:0)
ssh_packet_channel_failure: SSH_CHANNEL_FAILURE received in incorrect state
0


2018-04-17 18:54 GMT+03:00 Andreas Schneider :

> On Tuesday, 17 April 2018 15:47:58 CEST Yanis Kurganov wrote:
> > Moreover, after
> >
> > ssh_packet_channel_failure: SSH_CHANNEL_FAILURE received in incorrect
> state
> > 0
> >
> > libssh didn't return control and totaly freezed.
> >
>
> I'm sorry, I've never really looked into scp (which is a really broken
> protocol). You should use sftp which we support.
>
>
> Cheers,
>
>
> Andreas
>
>
> --
> Andreas Schneider   GPG-ID: CC014E3D
> www.cryptomilk.orga...@cryptomilk.org
>
>
>
>


Re: Channel opening failure: channel 53 error (1) open failed

2018-04-17 Thread Andreas Schneider
On Tuesday, 17 April 2018 15:47:58 CEST Yanis Kurganov wrote:
> Moreover, after
> 
> ssh_packet_channel_failure: SSH_CHANNEL_FAILURE received in incorrect state
> 0
> 
> libssh didn't return control and totaly freezed.
> 

I'm sorry, I've never really looked into scp (which is a really broken 
protocol). You should use sftp which we support.


Cheers,


Andreas


-- 
Andreas Schneider   GPG-ID: CC014E3D
www.cryptomilk.orga...@cryptomilk.org





Re: Channel opening failure: channel 53 error (1) open failed

2018-04-17 Thread Yanis Kurganov
Moreover, after

ssh_packet_channel_failure: SSH_CHANNEL_FAILURE received in incorrect state
0

libssh didn't return control and totaly freezed.

2018-04-17 16:43 GMT+03:00 Yanis Kurganov :

> Hi!
>
> I tried to push a couple of files through SCP. First file pushed
> successfully, but the second failed. Do you have any ideas about what
> happened?
>
> ssh_connect: libssh 0.7.5
> ssh_analyze_banner: Analyzing banner: SSH-2.0-OpenSSH_4.3p2-hpn
>
> *OK* (16 Apr 2018 20:51:57.255)
>
> ssh_scp_init: Initializing scp session write on location '/tmp'
> channel_open: Creating a channel 52 with 64000 window and 32768 max packet
> ssh_socket_unbuffered_write: Enabling POLLOUT for socket
> packet_send2: packet: wrote [len=44,padding=19,comp=24,payload=24]
> channel_open: Sent a SSH_MSG_CHANNEL_OPEN type session for channel 52
> ssh_packet_socket_callback: packet: read type 91
> [len=28,padding=10,comp=17,payload=17]
> ssh_packet_process: Dispatching handler for packet type 91
> ssh_packet_channel_open_conf: Received SSH2_MSG_CHANNEL_OPEN_CONFIRMATION
> ssh_packet_channel_open_conf: Received a CHANNEL_OPEN_CONFIRMATION for
> channel 52:9
> ...
> ssh_scp_push_file64: SCP pushing file 5727-c17d-2454-8f8f, size 101 with
> permissions '0755'
> packet_send2: packet: wrote [len=44,padding=4,comp=39,payload=39]
> ...
> channel_rcv_eof: Received eof on channel (52:9)
> ssh_socket_unbuffered_write: Enabling POLLOUT for socket
> packet_send2: packet: wrote [len=12,padding=6,comp=5,payload=5]
> ssh_channel_close: Sent a close on client channel (52:9)
>
> *FAILED* (16 Apr 2018 20:51:58.552)
>
> ssh_scp_init: Initializing scp session write on location '/tmp'
> channel_open: Creating a channel 53 with 64000 window and 32768 max packet
> ssh_socket_unbuffered_write: Enabling POLLOUT for socket
> packet_send2: packet: wrote [len=44,padding=19,comp=24,payload=24]
> channel_open: Sent a SSH_MSG_CHANNEL_OPEN type session for channel 53
> ssh_packet_socket_callback: packet: read type 92
> [len=44,padding=15,comp=28,payload=28]
> ssh_packet_process: Dispatching handler for packet type 92
> ssh_packet_channel_open_fail: Channel opening failure: channel 53 error
> (1) open failed
> ssh_socket_unbuffered_write: Enabling POLLOUT for socket
> packet_send2: packet: wrote [len=44,padding=13,comp=30,payload=30]
> channel_request: Sent a SSH_MSG_CHANNEL_REQUEST exec
> ssh_packet_socket_callback: packet: read type 100 [len=12,padding=6,comp=5,
> payload=5]
> ssh_packet_process: Dispatching handler for packet type 100
> ssh_packet_channel_failure: Received SSH_CHANNEL_FAILURE on channel (43:0)
> ssh_packet_channel_failure: SSH_CHANNEL_FAILURE received in incorrect
> state 0
>