I was trying to setup an SFTP access for IBMi where my IBMi would be acting as the host and an SAP server would be acting as the client.
I did all these steps given in this link. Note: I wanted to give restricted access to the SFTP client so I had to use CHROOT to create a 'jailed root' for the user profile using which the SFTP will be initiated.
Everything else works fine, but when I initiate the connection, the connection gets closed in 5-6 seconds.
Please see the screenshot below. Check the last line where you can see the message connection closed immediately after opening and SFTP connection.

Note: The full access method given on this link works fine. But I'm trying to setup the 'jailed root' method using CHROOT which involves setting up of separate root folder for the sftpuser.
All the steps that I followed are present on this link under the topic "restricted access method".
Could you please tell me what am I doing wrong?
Regards,
Ravi.
tags: #IBMi
------------------------------
Ravisankar Pandian
------------------------------