You are using Mule 4 and need to use SFTP connector in CloudHub. However, your organization has a requirement that the SSH key must be encrypted inside the JAR file and decrypted only inside the worker. However, the SFTP connector always fails the connectivity test in CloudHub and the app doesn't start. Here is a way to make it work.
doTestConnectivity=False anypoint.platform.config.analytics.agent.enabled=true passphrase=testme9. Upload the app and let it auto-start the process.
14:18:38.494 03/03/2021 Worker-0 [MuleRuntime].uber.01: [sftp-ch].sftp-chFlow.CPU_INTENSIVE @7edfe5e4 INFO
event:66d27f10-7c6e-11eb-818f-02773b1bd8e6 [
{
"inboundAttachmentNames": [
],
"exceptionPayload": null,
"inboundPropertyNames": [
],
"outboundAttachmentNames": [
],
"payload": "aa\n",
"outboundPropertyNames": [
],
"attributes": {
"symbolicLink": false,
"regularFile": true,
"directory": false,
"path": "/home/ubuntu/good/aa.txt",
"size": 3,
"name": "aa.txt",
"timestamp": "2021-03-03T21:05:16"
}
}
]
001116359

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.