I would like to upload a file from my local unix machine to a remote server that supports SFTP. I tried to implement using Ant script that used SCP task with sftp
attribute set to true, but it didn't work, since it would always error out:
com.jcraft.jsch.JSchException: 4: Received message is too long: 1416128878.
If you can help me achieve that using shell script that should resolve the issue. Also will I have to install sftp
or something on my local machine so that the script works?
Any help here would be greatly appreciated.
Cheers,
Ashley