How can I move file from local system to remote FTP using SFTP adapter. I am going through the examples and all are mentioning to copy files from remote FTP to local machine
Here's configuration based on yours that I actually checked to be working, you can use it as a starting point.
Problems with your configuration:
sftpSessionFactory
as a channel in inbound-channel-adapter
. It should define the message channel to which the payload shall be forwarded to, so in your case it seems like it should be publishToSFTPChannel
publish-subscribe-channel
used instead of simple point-to-point channel