[
https://issues.apache.org/jira/browse/SSHD-1009?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17123691#comment-17123691
]
Sreedhar J commented on SSHD-1009:
----------------------------------
Thanks for quick response. I have tried with your suggestion, but still got
the same error.
18743 2020-06-02 17:25:59,615 [NioProcessor-2] DEBUG
org.apache.sshd.server.session.ServerUserAuthService -
handleAuthenticationInProgress(admin@ServerSessionImpl[null@/0:0:0:0:0:0:0:1:52752])
SSH_MSG_USERAUTH_REQUEST
26882 2020-06-02 17:26:07,754 [NioProcessor-2] DEBUG
org.apache.sshd.server.session.ServerUserAuthService -
process(ServerSessionImpl[null@/0:0:0:0:0:0:0:1:52752]) Received authentication
message=SSH_MSG_USERAUTH_INFO_RESPONSE for mechanism=keyboard-interactive
26882 2020-06-02 17:26:07,754 [NioProcessor-2] DEBUG
org.apache.sshd.server.auth.keyboard.UserAuthKeyboardInteractive -
doAuth(admin@ServerSessionImpl[null@/0:0:0:0:0:0:0:1:52752]) authenticate 1
responses result: true
26882 2020-06-02 17:26:07,754 [NioProcessor-2] DEBUG
org.apache.sshd.server.session.ServerUserAuthService -
handleAuthenticationSuccess(admin@ServerSessionImpl[null@/0:0:0:0:0:0:0:1:52752])
SSH_MSG_USERAUTH_INFO_RESPONSE
26897 2020-06-02 17:26:07,769 [NioProcessor-2] INFO
org.apache.sshd.server.session.ServerSessionImpl - Session
admin@/0:0:0:0:0:0:0:1:52752 authenticated
26897 2020-06-02 17:26:07,769 [NioProcessor-2] DEBUG
org.apache.sshd.common.session.helpers.ReservedSessionMessagesHandlerAdapter -
handleIgnoreMessage(ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752])
SSH_MSG_IGNORE
26897 2020-06-02 17:26:07,769 [NioProcessor-2] DEBUG
org.apache.sshd.server.session.ServerConnectionService -
channelOpen(ServerConnectionService[ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]])
SSH_MSG_CHANNEL_OPEN sender=256, type=session, window-size=2147483647,
packet-size=16384
26897 2020-06-02 17:26:07,769 [NioProcessor-2] DEBUG
org.apache.sshd.server.channel.ChannelSession - init()
service=ServerConnectionService[ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]]
session=ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752] id=0
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.common.channel.Window -
init(Window[server/local](ChannelSession[id=0,
recipient=-1]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752])) size=2097152,
max=2097152, packet=32768
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.session.ServerConnectionService -
registerChannel(ServerConnectionService[ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]])[id=0]
ChannelSession[id=0,
recipient=-1]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.channel.ChannelSession -
setRecipient(ChannelSession[id=0,
recipient=-1]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]) recipient=256
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.common.channel.Window -
init(Window[server/remote](ChannelSession[id=0,
recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]))
size=2147483647, max=2147483647, packet=16384
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.common.channel.Window -
init(Window[server/local](ChannelSession[id=0,
recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752])) re-initializing
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.common.channel.Window -
init(Window[server/local](ChannelSession[id=0,
recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752])) size=2097152,
max=2097152, packet=32768
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.session.ServerConnectionService -
operationComplete(ChannelSession[id=0,
recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]) send
SSH_MSG_CHANNEL_OPEN_CONFIRMATION recipient=256, sender=0, window-size=2097152,
packet-size=32768
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.channel.ChannelSession -
handleChannelRequest(ChannelSession[id=0,
recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752])
SSH_MSG_CHANNEL_REQUEST [email protected] wantReply=false
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.channel.ChannelSession -
sendResponse(ChannelSession[id=0,
recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752])
[email protected] result=ReplySuccess, want-reply=false
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.channel.ChannelSession -
sendResponse(ChannelSession[id=0,
recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752])
[email protected] no pending command
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.channel.ChannelSession -
handleChannelRequest(ChannelSession[id=0,
recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752])
SSH_MSG_CHANNEL_REQUEST shell wantReply=true
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.channel.ChannelSession -
handleShell(ChannelSession[id=0,
recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]) - no shell
factory
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.channel.ChannelSession -
sendResponse(ChannelSession[id=0,
recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]) request=shell
result=ReplyFailure, want-reply=true
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.session.ServerSessionImpl -
close(ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]) Closing immediately
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.common.session.helpers.SessionTimeoutListener -
sessionClosed(ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]) un-tracked
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.session.ServerConnectionService -
close(ServerConnectionService[ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]])
Closing immediately
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.session.ServerConnectionService -
stopHeartBeat(ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]) no heartbeat to
stop
26913 2020-06-02 17:26:07,785 [NioProcessor-2] DEBUG
org.apache.sshd.server.channel.ChannelSession - close(ChannelSession[id=0,
recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:52752]) Closing
immediately
> SSHD SCP does not work with WinSCP
> ----------------------------------
>
> Key: SSHD-1009
> URL: https://issues.apache.org/jira/browse/SSHD-1009
> Project: MINA SSHD
> Issue Type: Question
> Affects Versions: 2.3.0
> Reporter: Sreedhar J
> Priority: Minor
> Attachments: ApacheSCPSFTPServer.java
>
>
> Hi,
>
> I am trying to setup the SFTP/SCP server using Apache SSHD 2.3.0. Was able
> to transfer a file using SCP from command line , but when I tried using
> WinSCP, I get a error saying Server could not start the Shell.
>
> 15:44:06.956 [NioProcessor-2] DEBUG
> org.apache.sshd.server.auth.keyboard.UserAuthKeyboardInteractive -
> doAuth(admin@ServerSessionImpl[null@/0:0:0:0:0:0:0:1:58407]) authenticate 1
> responses result: true
> 15:44:06.956 [NioProcessor-2] DEBUG
> org.apache.sshd.server.session.ServerUserAuthService -
> handleAuthenticationSuccess(admin@ServerSessionImpl[null@/0:0:0:0:0:0:0:1:58407])
> SSH_MSG_USERAUTH_INFO_RESPONSE
> 15:44:06.963 [NioProcessor-2] INFO
> org.apache.sshd.server.session.ServerSessionImpl - Session
> admin@/0:0:0:0:0:0:0:1:58407 authenticated
> 15:44:06.965 [NioProcessor-2] DEBUG
> org.apache.sshd.common.session.helpers.ReservedSessionMessagesHandlerAdapter
> - handleIgnoreMessage(ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407])
> SSH_MSG_IGNORE
> 15:44:06.966 [NioProcessor-2] DEBUG
> org.apache.sshd.server.session.ServerConnectionService -
> channelOpen(ServerConnectionService[ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]])
> SSH_MSG_CHANNEL_OPEN sender=256, type=session, window-size=2147483647,
> packet-size=16384
> 15:44:06.982 [NioProcessor-2] DEBUG
> org.apache.sshd.server.channel.ChannelSession - init()
> service=ServerConnectionService[ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]]
> session=ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407] id=0
> 15:44:06.982 [NioProcessor-2] DEBUG org.apache.sshd.common.channel.Window -
> init(Window[server/local](ChannelSession[id=0,
> recipient=-1]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407])) size=2097152,
> max=2097152, packet=32768
> 15:44:06.983 [NioProcessor-2] DEBUG
> org.apache.sshd.server.session.ServerConnectionService -
> registerChannel(ServerConnectionService[ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]])[id=0]
> ChannelSession[id=0,
> recipient=-1]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]
> 15:44:06.983 [NioProcessor-2] DEBUG
> org.apache.sshd.server.channel.ChannelSession -
> setRecipient(ChannelSession[id=0,
> recipient=-1]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]) recipient=256
> 15:44:06.983 [NioProcessor-2] DEBUG org.apache.sshd.common.channel.Window -
> init(Window[server/remote](ChannelSession[id=0,
> recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]))
> size=2147483647, max=2147483647, packet=16384
> 15:44:06.983 [NioProcessor-2] DEBUG org.apache.sshd.common.channel.Window -
> init(Window[server/local](ChannelSession[id=0,
> recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]))
> re-initializing
> 15:44:06.983 [NioProcessor-2] DEBUG org.apache.sshd.common.channel.Window -
> init(Window[server/local](ChannelSession[id=0,
> recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]))
> size=2097152, max=2097152, packet=32768
> 15:44:06.985 [NioProcessor-2] DEBUG
> org.apache.sshd.server.session.ServerConnectionService -
> operationComplete(ChannelSession[id=0,
> recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]) send
> SSH_MSG_CHANNEL_OPEN_CONFIRMATION recipient=256, sender=0,
> window-size=2097152, packet-size=32768
> 15:44:06.986 [NioProcessor-2] DEBUG
> org.apache.sshd.server.channel.ChannelSession -
> handleChannelRequest(ChannelSession[id=0,
> recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407])
> SSH_MSG_CHANNEL_REQUEST [email protected] wantReply=false
> 15:44:06.987 [NioProcessor-2] DEBUG
> org.apache.sshd.server.channel.ChannelSession -
> sendResponse(ChannelSession[id=0,
> recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407])
> [email protected] result=ReplySuccess,
> want-reply=false
> 15:44:06.987 [NioProcessor-2] DEBUG
> org.apache.sshd.server.channel.ChannelSession -
> sendResponse(ChannelSession[id=0,
> recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407])
> [email protected] no pending command
> 15:44:06.987 [NioProcessor-2] DEBUG
> org.apache.sshd.server.channel.ChannelSession -
> handleChannelRequest(ChannelSession[id=0,
> recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407])
> SSH_MSG_CHANNEL_REQUEST shell wantReply=true
> 15:44:06.987 [NioProcessor-2] DEBUG
> org.apache.sshd.server.channel.ChannelSession -
> handleShell(ChannelSession[id=0,
> recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]) - no shell
> factory
> 15:44:06.987 [NioProcessor-2] DEBUG
> org.apache.sshd.server.channel.ChannelSession -
> sendResponse(ChannelSession[id=0,
> recipient=256]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]) request=shell
> result=ReplyFailure, want-reply=true
> 15:44:06.988 [NioProcessor-2] DEBUG
> org.apache.sshd.server.session.ServerSessionImpl -
> close(ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]) Closing immediately
>
> Please let me know if I missing some configuration around SCP.
>
> have attached the source code.
> Thanks and Regards,
> Sreedhar.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]