From dev-return-36889-apmail-mina-dev-archive=mina.apache.org@mina.apache.org Thu Jun 4 06:22:03 2020 Return-Path: X-Original-To: apmail-mina-dev-archive@www.apache.org Delivered-To: apmail-mina-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with SMTP id 77260199B1 for ; Thu, 4 Jun 2020 06:22:03 +0000 (UTC) Received: (qmail 79246 invoked by uid 500); 4 Jun 2020 06:22:02 -0000 Delivered-To: apmail-mina-dev-archive@mina.apache.org Received: (qmail 79211 invoked by uid 500); 4 Jun 2020 06:22:02 -0000 Mailing-List: contact dev-help@mina.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@mina.apache.org Received: (qmail 79198 invoked by uid 99); 4 Jun 2020 06:22:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jun 2020 06:22:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5A0F0411FF for ; Thu, 4 Jun 2020 06:22:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 2B42F780410 for ; Thu, 4 Jun 2020 06:22:00 +0000 (UTC) Date: Thu, 4 Jun 2020 06:22:00 +0000 (UTC) From: "Guillaume Nodet (Jira)" To: dev@mina.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SSHD-1009) SSHD SCP does not work with WinSCP MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SSHD-1009?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D17125= 573#comment-17125573 ]=20 Guillaume Nodet commented on SSHD-1009: --------------------------------------- You need to modify the code to do something like: https://github.com/apache/mina-sshd/commit/449c2a56cbfef7c1f7abbb441bcce4ab= 3116dc65#diff-f8a136b47b2b1b19b0ece9a8eb951a34R152-R154 > 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 > Assignee: Guillaume Nodet > Priority: Major > Fix For: 2.5.0 > > Attachments: ApacheSCPSFTPServer.java, ApacheSCPSFTPServer.java, = WinSCP_Error.png, WinSCP_Success_with _Linux_System.png > > > Hi, > =C2=A0 > I am trying to setup the=C2=A0 SFTP/SCP server using Apache SSHD 2.3.0.= =C2=A0 Was able to transfer a file using SCP from command line , but when I= tried using WinSCP,=C2=A0 I get a error saying Server could not start the = Shell. > =C2=A0 > 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.Server= UserAuthService - 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.ServerS= essionImpl - Session admin@/0:0:0:0:0:0:0:1:58407 authenticated > 15:44:06.965 [NioProcessor-2] DEBUG org.apache.sshd.common.session.helper= s.ReservedSessionMessagesHandlerAdapter - handleIgnoreMessage(ServerSession= Impl[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.Server= ConnectionService - channelOpen(ServerConnectionService[ServerSessionImpl[a= dmin@/0:0:0:0:0:0:0:1:58407]]) SSH_MSG_CHANNEL_OPEN sender=3D256, type=3Dse= ssion, window-size=3D2147483647, packet-size=3D16384 > 15:44:06.982 [NioProcessor-2] DEBUG org.apache.sshd.server.channel.Channe= lSession - init() service=3DServerConnectionService[ServerSessionImpl[admin= @/0:0:0:0:0:0:0:1:58407]] session=3DServerSessionImpl[admin@/0:0:0:0:0:0:0:= 1:58407] id=3D0 > 15:44:06.982 [NioProcessor-2] DEBUG org.apache.sshd.common.channel.Window= - init(Window[server/local](ChannelSession[id=3D0, recipient=3D-1]-ServerS= essionImpl[admin@/0:0:0:0:0:0:0:1:58407])) size=3D2097152, max=3D2097152, p= acket=3D32768 > 15:44:06.983 [NioProcessor-2] DEBUG org.apache.sshd.server.session.Server= ConnectionService - registerChannel(ServerConnectionService[ServerSessionIm= pl[admin@/0:0:0:0:0:0:0:1:58407]])[id=3D0] ChannelSession[id=3D0, recipient= =3D-1]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407] > 15:44:06.983 [NioProcessor-2] DEBUG org.apache.sshd.server.channel.Channe= lSession - setRecipient(ChannelSession[id=3D0, recipient=3D-1]-ServerSessio= nImpl[admin@/0:0:0:0:0:0:0:1:58407]) recipient=3D256 > 15:44:06.983 [NioProcessor-2] DEBUG org.apache.sshd.common.channel.Window= - init(Window[server/remote](ChannelSession[id=3D0, recipient=3D256]-Serve= rSessionImpl[admin@/0:0:0:0:0:0:0:1:58407])) size=3D2147483647, max=3D21474= 83647, packet=3D16384 > 15:44:06.983 [NioProcessor-2] DEBUG org.apache.sshd.common.channel.Window= - init(Window[server/local](ChannelSession[id=3D0, recipient=3D256]-Server= SessionImpl[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=3D0, recipient=3D256]-Server= SessionImpl[admin@/0:0:0:0:0:0:0:1:58407])) size=3D2097152, max=3D2097152, = packet=3D32768 > 15:44:06.985 [NioProcessor-2] DEBUG org.apache.sshd.server.session.Server= ConnectionService - operationComplete(ChannelSession[id=3D0, recipient=3D25= 6]-ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]) send SSH_MSG_CHANNEL_OP= EN_CONFIRMATION recipient=3D256, sender=3D0, window-size=3D2097152, packet-= size=3D32768 > 15:44:06.986 [NioProcessor-2] DEBUG org.apache.sshd.server.channel.Channe= lSession - handleChannelRequest(ChannelSession[id=3D0, recipient=3D256]-Ser= verSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]) SSH_MSG_CHANNEL_REQUEST simpl= e@putty.projects.tartarus.org wantReply=3Dfalse > 15:44:06.987 [NioProcessor-2] DEBUG org.apache.sshd.server.channel.Channe= lSession - sendResponse(ChannelSession[id=3D0, recipient=3D256]-ServerSessi= onImpl[admin@/0:0:0:0:0:0:0:1:58407]) request=3Dsimple@putty.projects.tarta= rus.org result=3DReplySuccess, want-reply=3Dfalse > 15:44:06.987 [NioProcessor-2] DEBUG org.apache.sshd.server.channel.Channe= lSession - sendResponse(ChannelSession[id=3D0, recipient=3D256]-ServerSessi= onImpl[admin@/0:0:0:0:0:0:0:1:58407]) request=3Dsimple@putty.projects.tarta= rus.org no pending command > 15:44:06.987 [NioProcessor-2] DEBUG org.apache.sshd.server.channel.Channe= lSession - handleChannelRequest(ChannelSession[id=3D0, recipient=3D256]-Ser= verSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]) SSH_MSG_CHANNEL_REQUEST shell= wantReply=3Dtrue > 15:44:06.987 [NioProcessor-2] DEBUG org.apache.sshd.server.channel.Channe= lSession - handleShell(ChannelSession[id=3D0, recipient=3D256]-ServerSessio= nImpl[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.Channe= lSession - sendResponse(ChannelSession[id=3D0, recipient=3D256]-ServerSessi= onImpl[admin@/0:0:0:0:0:0:0:1:58407]) request=3Dshell result=3DReplyFailure= , want-reply=3Dtrue > 15:44:06.988 [NioProcessor-2] DEBUG org.apache.sshd.server.session.Server= SessionImpl - close(ServerSessionImpl[admin@/0:0:0:0:0:0:0:1:58407]) Closin= g immediately > =C2=A0 > Please let me know if I missing some configuration around SCP. > =C2=A0 > have attached the source code. > Thanks and Regards, > Sreedhar. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org For additional commands, e-mail: dev-help@mina.apache.org