[ 
https://issues.apache.org/jira/browse/NIFI-9324?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17469551#comment-17469551
 ] 

David Handermann commented on NIFI-9324:
----------------------------------------

Thanks for the additional logs [~Kirhold] , that's helpful.  The SSH 
negotiation is getting past the point of the banner, so that does not appear to 
be the problem.

The failure occurs after a successful authentication in response to request an 
SFTP session.  It would be helpful to know if the server in question has 
something different configured for the SFTP subsystem.  It looks like this 
error could occur if SFTP is disabled, or limited in some other way.  From the 
log provided, here's the point after a successful authentication followed by 
the SFTP subsystem request failure:

{noformat}
DEBUG [Timer-Driven Process Thread-43] net.schmizz.sshj.userauth.UserAuthImpl 
`publickey` auth successful
DEBUG [Timer-Driven Process Thread-43] 
net.schmizz.sshj.connection.ConnectionImpl Attaching `session` channel (#0)
DEBUG [reader] net.schmizz.sshj.connection.ConnectionImpl Received 
GLOBAL_REQUEST `[email protected]`; want reply: false
DEBUG [reader] net.schmizz.sshj.connection.channel.direct.SessionChannel 
Initialized - < session channel: id=0, recipient=0, localWin=[winSize=2097152], 
remoteWin=[winSize=0] >
INFO [Timer-Driven Process Thread-43] 
net.schmizz.sshj.connection.channel.direct.SessionChannel Will request `sftp` 
subsystem
DEBUG [Timer-Driven Process Thread-43] 
net.schmizz.sshj.connection.channel.direct.SessionChannel Sending channel 
request for `subsystem`
ERROR [Timer-Driven Process Thread-43] net.schmizz.concurrent.Promise <<chan#0 
/ chanreq for subsystem>> woke to: 
net.schmizz.sshj.connection.ConnectionException: Request failed
INFO [Timer-Driven Process Thread-43] net.schmizz.sshj.transport.TransportImpl 
Disconnected - BY_APPLICATION
{noformat}


> SFTP handling of Server Banners
> -------------------------------
>
>                 Key: NIFI-9324
>                 URL: https://issues.apache.org/jira/browse/NIFI-9324
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.14.0
>         Environment: Redhat Linux 
> Nifi 1.14.0
>            Reporter: Alan Rigele
>            Priority: Major
>              Labels: fetchsftp, listsftp, nifi
>         Attachments: not-ok, ok
>
>
> WHen attempting to connect to an SFTP server to list and then fetch files, 
> the processor will fail with a socker timeout. The server is avilable from 
> the nifi server, and the user/pwd has been tested. The one difference to 
> another srver is that the failign one has a server banner which returns 
> This is the reponse from the shell test. 
> $ sftp [[email protected]|mailto:[email protected]]
> *You are trying to access a restricted zone. Only Authorized Users allowed.*
> [[email protected]'s|mailto:[email protected]'s] password:
> Connected to yy.yy.yy.yy
>  
> I dont see any possible parameter to configure. And scanning the code does 
> not show too much. 
> Any ideas
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to