Hi Saurav,
“Connection refused” usually suggests Amazon s3 itself is not accessible from the environment.
If it were credential issue, error message would be access denied.
Access token id and secret key are part of credentials of a user and please make sure that, that user has access to list, upload, download, delete files from the S3 bucket configured.
Regards
Biswa
#Managed-File-Transfer#B2B-Integration#webMethods