towsb1 commented on issue #893:
URL: https://github.com/apache/mina-sshd/issues/893#issuecomment-4247256250

   I've managed to repeat this with the TRACE logging on.  I don't want to post 
the whole log out of security concerns for the server I'm connecting to, but 
this is the section immediately after the `cli>` prompt comes in.  Is this 
showing the "shell" part that this test sends is actually being read back on 
the input stream direct from the device?  Not sure exactly how to read some of 
this.
   
   ```
   <- 
   
   cli>                                                                         
                                                                                
                                                                                
               
   [main] DEBUG org.apache.sshd.common.channel.RemoteWindow - 
waitForSpace(RemoteWindow[client](ChannelShell[id=0, 
recipient=0]-ClientSessionImpl[osg-si@localhost/127.0.0.1:18922])) available: 
2097152
   [main] TRACE org.apache.sshd.client.channel.ChannelShell - 
flush(ChannelOutputStream[ChannelShell[id=0, 
recipient=0]-ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]] 
SSH_MSG_CHANNEL_DATA) len=6, available=2097152
   [main] DEBUG org.apache.sshd.common.channel.RemoteWindow - 
waitAndConsume(RemoteWindow[client](ChannelShell[id=0, 
recipient=0]-ClientSessionImpl[osg-si@localhost/127.0.0.1:18922])) - 
requested=6, available=2097152
   [main] DEBUG org.apache.sshd.common.channel.RemoteWindow - Consume 
RemoteWindow[client](ChannelShell[id=0, 
recipient=0]-ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) by 6 down to 
2097146
   [main] TRACE org.apache.sshd.client.channel.ChannelShell - 
flush(ChannelShell[id=0, 
recipient=0]-ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) send 
SSH_MSG_CHANNEL_DATA len=6
   [main] DEBUG org.apache.sshd.client.session.ClientSessionImpl - 
encode(ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) packet #8 sending 
command=94[SSH_MSG_CHANNEL_DATA] len=15
   [main] TRACE org.apache.sshd.client.session.ClientSessionImpl - 
encode(ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) packet #8 [chunk 
#1](15/15) 5e 00 00 00 00 00 00 00 06 73 68 65 6c 6c 0a                         
                                                                                
                                              ^........shell.
   [main] TRACE org.apache.sshd.client.session.ClientSessionImpl - 
encode(ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) packet #8 
command=94[SSH_MSG_CHANNEL_DATA] len=24, pad=8, mac=null
   [main] DEBUG org.apache.sshd.common.io.nio2.Nio2Session - 
writeBuffer(Nio2Session[local=/127.0.0.1:50588, 
remote=localhost/127.0.0.1:18922]) writing 44 bytes
   [sshd-SshClient[2dc9b0f5]-nio2-thread-5] TRACE 
org.apache.sshd.common.io.nio2.Nio2Session - 
handleCompletedWriteCycle(Nio2Session[local=/127.0.0.1:50588, 
remote=localhost/127.0.0.1:18922]) finished writing len=44 at cycle=13 after 
405205 nanos
   -> shell
   
   [sshd-SshClient[2dc9b0f5]-nio2-thread-6] TRACE 
org.apache.sshd.common.io.nio2.Nio2Session - 
handleReadCycleCompletion(Nio2Session[local=/127.0.0.1:50588, 
remote=localhost/127.0.0.1:18922]) read 88 bytes after 47811615 nanos at 
cycle=14
   [sshd-SshClient[2dc9b0f5]-nio2-thread-6] TRACE 
org.apache.sshd.client.session.ClientSessionImpl - 
decode(ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) packet #13 [chunk 
#1](12/12) 5e 00 00 00 00 00 00 00 03 73 68 65                                  
                                                                                
                                              ^........she
   [sshd-SshClient[2dc9b0f5]-nio2-thread-6] DEBUG 
org.apache.sshd.client.session.ClientSessionImpl - 
doHandleMessage(ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) process 
#12 SSH_MSG_CHANNEL_DATA
   [sshd-SshClient[2dc9b0f5]-nio2-thread-6] DEBUG 
org.apache.sshd.common.channel.LocalWindow - Consume 
LocalWindow[client](ChannelShell[id=0, 
recipient=0]-ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) by 3 down to 
2096731
   [sshd-SshClient[2dc9b0f5]-nio2-thread-6] DEBUG 
org.apache.sshd.client.channel.ChannelShell - handleData(ChannelShell[id=0, 
recipient=0]-ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) 
SSH_MSG_CHANNEL_DATA len=3
   [sshd-SshClient[2dc9b0f5]-nio2-thread-6] TRACE 
org.apache.sshd.client.channel.ChannelShell - handleData(ChannelShell[id=0, 
recipient=0]-ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) [chunk 
#1](3/3) 73 68 65                                                               
                                                                                
                                            she
   [sshd-SshClient[2dc9b0f5]-nio2-thread-6] TRACE 
org.apache.sshd.client.session.ClientSessionImpl - 
decode(ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) packet #14 [chunk 
#1](14/14) 5e 00 00 00 00 00 00 00 05 6c 6c 0d 0d 0a                            
                                                                                
                                              ^........ll...
   [sshd-SshClient[2dc9b0f5]-nio2-thread-6] DEBUG 
org.apache.sshd.client.session.ClientSessionImpl - 
doHandleMessage(ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) process 
#13 SSH_MSG_CHANNEL_DATA
   <- she                                                                       
                                                                                
                                                                                
                     
   [sshd-SshClient[2dc9b0f5]-nio2-thread-6] DEBUG 
org.apache.sshd.common.channel.LocalWindow - Consume 
LocalWindow[client](ChannelShell[id=0, 
recipient=0]-ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) by 5 down to 
2096726
   [sshd-SshClient[2dc9b0f5]-nio2-thread-6] DEBUG 
org.apache.sshd.client.channel.ChannelShell - handleData(ChannelShell[id=0, 
recipient=0]-ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) 
SSH_MSG_CHANNEL_DATA len=5
   [sshd-SshClient[2dc9b0f5]-nio2-thread-6] TRACE 
org.apache.sshd.client.channel.ChannelShell - handleData(ChannelShell[id=0, 
recipient=0]-ClientSessionImpl[osg-si@localhost/127.0.0.1:18922]) [chunk 
#1](5/5) 6c 6c 0d 0d 0a                                                         
                                                                                
                                            ll...
   <- ll
   
                                                                                
                                                                                
                                                                                
             
   [sshd-SshClient[2dc9b0f5]-nio2-thread-1] TRACE 
org.apache.sshd.common.io.nio2.Nio2Session - 
handleReadCycleCompletion(Nio2Session[local=/127.0.0.1:50588, 
remote=localhost/127.0.0.1:18922]) read 180 bytes after 83004351 nanos at 
cycle=15
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to